# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
As is a pseudo aggregation function for renaming another other functions with custom names.
Asc applies the given fields in ASC order.
Count applies the "count" aggregation function on each group.
Debug enables debug logging on the ent.Driver.
Desc applies the given fields in DESC order.
Driver configures the client driver.
FromContext returns a Client stored inside a context, or nil if there isn't one.
IsConstraintError returns a boolean indicating whether the error is a constraint failure.
IsNotFound returns a boolean indicating whether the error is a not found error.
IsNotLoaded returns a boolean indicating whether the error is a not loaded error.
IsNotSingular returns a boolean indicating whether the error is a not singular error.
IsValidationError returns a boolean indicating whether the error is a validation error.
Log sets the logging function for debug mode.
MaskNotFound masks not found error.
Max applies the "max" aggregation function on the given field of each group.
Mean applies the "mean" aggregation function on the given field of each group.
Min applies the "min" aggregation function on the given field of each group.
NewChatClient returns a client for the Chat from the given config.
NewCityClient returns a client for the City from the given config.
NewClient creates a new client configured with the given options.
NewCommentClient returns a client for the Comment from the given config.
NewContext returns a new context with the given Client attached.
NewCountryClient returns a client for the Country from the given config.
NewFileClient returns a client for the File from the given config.
NewFriendClient returns a client for the Friend from the given config.
NewMessageClient returns a client for the Message from the given config.
NewNotificationClient returns a client for the Notification from the given config.
NewOtpClient returns a client for the Otp from the given config.
NewPostClient returns a client for the Post from the given config.
NewReactionClient returns a client for the Reaction from the given config.
NewRegionClient returns a client for the Region from the given config.
NewReplyClient returns a client for the Reply from the given config.
NewSiteDetailClient returns a client for the SiteDetail from the given config.
NewTxContext returns a new context with the given Tx attached.
NewUserClient returns a client for the User from the given config.
Open opens a database/sql.DB specified by the driver name and the data source name, and returns a new client attached to it.
Sum applies the "sum" aggregation function on the given field of each group.
TxFromContext returns a Tx stored inside a context, or nil if there isn't one.
# Constants
Operation types.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Node types.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
ErrTxStarted is returned when trying to start a new transaction from a transactional client.
# Structs
Chat is the model entity for the Chat schema.
ChatClient is a client for the Chat schema.
ChatCreate is the builder for creating a Chat entity.
ChatCreateBulk is the builder for creating many Chat entities in bulk.
ChatDelete is the builder for deleting a Chat entity.
ChatDeleteOne is the builder for deleting a single Chat entity.
ChatEdges holds the relations/edges for other nodes in the graph.
ChatGroupBy is the group-by builder for Chat entities.
ChatMutation represents an operation that mutates the Chat nodes in the graph.
ChatQuery is the builder for querying Chat entities.
ChatSelect is the builder for selecting fields of Chat entities.
ChatUpdate is the builder for updating Chat entities.
ChatUpdateOne is the builder for updating a single Chat entity.
City is the model entity for the City schema.
CityClient is a client for the City schema.
CityCreate is the builder for creating a City entity.
CityCreateBulk is the builder for creating many City entities in bulk.
CityDelete is the builder for deleting a City entity.
CityDeleteOne is the builder for deleting a single City entity.
CityEdges holds the relations/edges for other nodes in the graph.
CityGroupBy is the group-by builder for City entities.
CityMutation represents an operation that mutates the City nodes in the graph.
CityQuery is the builder for querying City entities.
CitySelect is the builder for selecting fields of City entities.
CityUpdate is the builder for updating City entities.
CityUpdateOne is the builder for updating a single City entity.
Client is the client that holds all ent builders.
Comment is the model entity for the Comment schema.
CommentClient is a client for the Comment schema.
CommentCreate is the builder for creating a Comment entity.
CommentCreateBulk is the builder for creating many Comment entities in bulk.
CommentDelete is the builder for deleting a Comment entity.
CommentDeleteOne is the builder for deleting a single Comment entity.
CommentEdges holds the relations/edges for other nodes in the graph.
CommentGroupBy is the group-by builder for Comment entities.
CommentMutation represents an operation that mutates the Comment nodes in the graph.
CommentQuery is the builder for querying Comment entities.
CommentSelect is the builder for selecting fields of Comment entities.
CommentUpdate is the builder for updating Comment entities.
CommentUpdateOne is the builder for updating a single Comment entity.
ConstraintError returns when trying to create/update one or more entities and one or more of their constraints failed.
Country is the model entity for the Country schema.
CountryClient is a client for the Country schema.
CountryCreate is the builder for creating a Country entity.
CountryCreateBulk is the builder for creating many Country entities in bulk.
CountryDelete is the builder for deleting a Country entity.
CountryDeleteOne is the builder for deleting a single Country entity.
CountryEdges holds the relations/edges for other nodes in the graph.
CountryGroupBy is the group-by builder for Country entities.
CountryMutation represents an operation that mutates the Country nodes in the graph.
CountryQuery is the builder for querying Country entities.
CountrySelect is the builder for selecting fields of Country entities.
CountryUpdate is the builder for updating Country entities.
CountryUpdateOne is the builder for updating a single Country entity.
File is the model entity for the File schema.
FileClient is a client for the File schema.
FileCreate is the builder for creating a File entity.
FileCreateBulk is the builder for creating many File entities in bulk.
FileDelete is the builder for deleting a File entity.
FileDeleteOne is the builder for deleting a single File entity.
FileEdges holds the relations/edges for other nodes in the graph.
FileGroupBy is the group-by builder for File entities.
FileMutation represents an operation that mutates the File nodes in the graph.
FileQuery is the builder for querying File entities.
FileSelect is the builder for selecting fields of File entities.
FileUpdate is the builder for updating File entities.
FileUpdateOne is the builder for updating a single File entity.
Friend is the model entity for the Friend schema.
FriendClient is a client for the Friend schema.
FriendCreate is the builder for creating a Friend entity.
FriendCreateBulk is the builder for creating many Friend entities in bulk.
FriendDelete is the builder for deleting a Friend entity.
FriendDeleteOne is the builder for deleting a single Friend entity.
FriendEdges holds the relations/edges for other nodes in the graph.
FriendGroupBy is the group-by builder for Friend entities.
FriendMutation represents an operation that mutates the Friend nodes in the graph.
FriendQuery is the builder for querying Friend entities.
FriendSelect is the builder for selecting fields of Friend entities.
FriendUpdate is the builder for updating Friend entities.
FriendUpdateOne is the builder for updating a single Friend entity.
Message is the model entity for the Message schema.
MessageClient is a client for the Message schema.
MessageCreate is the builder for creating a Message entity.
MessageCreateBulk is the builder for creating many Message entities in bulk.
MessageDelete is the builder for deleting a Message entity.
MessageDeleteOne is the builder for deleting a single Message entity.
MessageEdges holds the relations/edges for other nodes in the graph.
MessageGroupBy is the group-by builder for Message entities.
MessageMutation represents an operation that mutates the Message nodes in the graph.
MessageQuery is the builder for querying Message entities.
MessageSelect is the builder for selecting fields of Message entities.
MessageUpdate is the builder for updating Message entities.
MessageUpdateOne is the builder for updating a single Message entity.
NotFoundError returns when trying to fetch a specific entity and it was not found in the database.
Notification is the model entity for the Notification schema.
NotificationClient is a client for the Notification schema.
NotificationCreate is the builder for creating a Notification entity.
NotificationCreateBulk is the builder for creating many Notification entities in bulk.
NotificationDelete is the builder for deleting a Notification entity.
NotificationDeleteOne is the builder for deleting a single Notification entity.
NotificationEdges holds the relations/edges for other nodes in the graph.
NotificationGroupBy is the group-by builder for Notification entities.
NotificationMutation represents an operation that mutates the Notification nodes in the graph.
NotificationQuery is the builder for querying Notification entities.
NotificationSelect is the builder for selecting fields of Notification entities.
NotificationUpdate is the builder for updating Notification entities.
NotificationUpdateOne is the builder for updating a single Notification entity.
NotLoadedError returns when trying to get a node that was not loaded by the query.
NotSingularError returns when trying to fetch a singular entity and more then one was found in the database.
Otp is the model entity for the Otp schema.
OtpClient is a client for the Otp schema.
OtpCreate is the builder for creating a Otp entity.
OtpCreateBulk is the builder for creating many Otp entities in bulk.
OtpDelete is the builder for deleting a Otp entity.
OtpDeleteOne is the builder for deleting a single Otp entity.
OtpEdges holds the relations/edges for other nodes in the graph.
OtpGroupBy is the group-by builder for Otp entities.
OtpMutation represents an operation that mutates the Otp nodes in the graph.
OtpQuery is the builder for querying Otp entities.
OtpSelect is the builder for selecting fields of Otp entities.
OtpUpdate is the builder for updating Otp entities.
OtpUpdateOne is the builder for updating a single Otp entity.
Post is the model entity for the Post schema.
PostClient is a client for the Post schema.
PostCreate is the builder for creating a Post entity.
PostCreateBulk is the builder for creating many Post entities in bulk.
PostDelete is the builder for deleting a Post entity.
PostDeleteOne is the builder for deleting a single Post entity.
PostEdges holds the relations/edges for other nodes in the graph.
PostGroupBy is the group-by builder for Post entities.
PostMutation represents an operation that mutates the Post nodes in the graph.
PostQuery is the builder for querying Post entities.
PostSelect is the builder for selecting fields of Post entities.
PostUpdate is the builder for updating Post entities.
PostUpdateOne is the builder for updating a single Post entity.
Reaction is the model entity for the Reaction schema.
ReactionClient is a client for the Reaction schema.
ReactionCreate is the builder for creating a Reaction entity.
ReactionCreateBulk is the builder for creating many Reaction entities in bulk.
ReactionDelete is the builder for deleting a Reaction entity.
ReactionDeleteOne is the builder for deleting a single Reaction entity.
ReactionEdges holds the relations/edges for other nodes in the graph.
ReactionGroupBy is the group-by builder for Reaction entities.
ReactionMutation represents an operation that mutates the Reaction nodes in the graph.
ReactionQuery is the builder for querying Reaction entities.
ReactionSelect is the builder for selecting fields of Reaction entities.
ReactionUpdate is the builder for updating Reaction entities.
ReactionUpdateOne is the builder for updating a single Reaction entity.
Region is the model entity for the Region schema.
RegionClient is a client for the Region schema.
RegionCreate is the builder for creating a Region entity.
RegionCreateBulk is the builder for creating many Region entities in bulk.
RegionDelete is the builder for deleting a Region entity.
RegionDeleteOne is the builder for deleting a single Region entity.
RegionEdges holds the relations/edges for other nodes in the graph.
RegionGroupBy is the group-by builder for Region entities.
RegionMutation represents an operation that mutates the Region nodes in the graph.
RegionQuery is the builder for querying Region entities.
RegionSelect is the builder for selecting fields of Region entities.
RegionUpdate is the builder for updating Region entities.
RegionUpdateOne is the builder for updating a single Region entity.
Reply is the model entity for the Reply schema.
ReplyClient is a client for the Reply schema.
ReplyCreate is the builder for creating a Reply entity.
ReplyCreateBulk is the builder for creating many Reply entities in bulk.
ReplyDelete is the builder for deleting a Reply entity.
ReplyDeleteOne is the builder for deleting a single Reply entity.
ReplyEdges holds the relations/edges for other nodes in the graph.
ReplyGroupBy is the group-by builder for Reply entities.
ReplyMutation represents an operation that mutates the Reply nodes in the graph.
ReplyQuery is the builder for querying Reply entities.
ReplySelect is the builder for selecting fields of Reply entities.
ReplyUpdate is the builder for updating Reply entities.
ReplyUpdateOne is the builder for updating a single Reply entity.
SiteDetail is the model entity for the SiteDetail schema.
SiteDetailClient is a client for the SiteDetail schema.
SiteDetailCreate is the builder for creating a SiteDetail entity.
SiteDetailCreateBulk is the builder for creating many SiteDetail entities in bulk.
SiteDetailDelete is the builder for deleting a SiteDetail entity.
SiteDetailDeleteOne is the builder for deleting a single SiteDetail entity.
SiteDetailGroupBy is the group-by builder for SiteDetail entities.
SiteDetailMutation represents an operation that mutates the SiteDetail nodes in the graph.
SiteDetailQuery is the builder for querying SiteDetail entities.
SiteDetailSelect is the builder for selecting fields of SiteDetail entities.
SiteDetailUpdate is the builder for updating SiteDetail entities.
SiteDetailUpdateOne is the builder for updating a single SiteDetail entity.
Tx is a transactional client that is created by calling Client.Tx().
User is the model entity for the User schema.
UserClient is a client for the User schema.
UserCreate is the builder for creating a User entity.
UserCreateBulk is the builder for creating many User entities in bulk.
UserDelete is the builder for deleting a User entity.
UserDeleteOne is the builder for deleting a single User entity.
UserEdges holds the relations/edges for other nodes in the graph.
UserGroupBy is the group-by builder for User entities.
UserMutation represents an operation that mutates the User nodes in the graph.
UserQuery is the builder for querying User entities.
UserSelect is the builder for selecting fields of User entities.
UserUpdate is the builder for updating User entities.
UserUpdateOne is the builder for updating a single User entity.
ValidationError returns when validating a field or edge fails.
# Type aliases
AggregateFunc applies an aggregation step on the group-by traversal/selector.
Chats is a parsable slice of Chat.
Cities is a parsable slice of City.
Comments is a parsable slice of Comment.
No description provided by the author
No description provided by the author
Countries is a parsable slice of Country.
Files is a parsable slice of File.
Friends is a parsable slice of Friend.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
Messages is a parsable slice of Message.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
Notifications is a parsable slice of Notification.
ent aliases to avoid import conflicts in user's code.
No description provided by the author
OrderFunc applies an ordering on the sql selector.
Otps is a parsable slice of Otp.
ent aliases to avoid import conflicts in user's code.
Posts is a parsable slice of Post.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
Reactions is a parsable slice of Reaction.
Regions is a parsable slice of Region.
Replies is a parsable slice of Reply.
No description provided by the author
No description provided by the author
SiteDetails is a parsable slice of SiteDetail.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
Users is a parsable slice of User.
ent aliases to avoid import conflicts in user's code.