# 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
# 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 the Client stored in 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 validaton error.
Log sets the logging function for debug mode.
MaskNotFound masks nor 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.
NewClient creates a new client configured with the given options.
NewContext returns a new context with the given Client attached.
NewPetClient returns a client for the Pet from the given config.
NewTxContext returns a new context with the given Client 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 the Tx stored in 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
# Structs
Client is the client that holds all ent builders.
ConstraintError returns when trying to create/update one or more entities and one or more of their constraints failed.
NotFoundError returns when trying to fetch a specific entity and it was not found in the database.
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.
Pet is the model entity for the Pet schema.
PetClient is a client for the Pet schema.
PetCreate is the builder for creating a Pet entity.
PetCreateBulk is the builder for creating a bulk of Pet entities.
PetDelete is the builder for deleting a Pet entity.
PetDeleteOne is the builder for deleting a single Pet entity.
PetEdges holds the relations/edges for other nodes in the graph.
PetGroupBy is the builder for group-by Pet entities.
PetMutation represents an operation that mutate the Pets nodes in the graph.
PetQuery is the builder for querying Pet entities.
PetSelect is the builder for select fields of Pet entities.
PetUpdate is the builder for updating Pet entities.
PetUpdateOne is the builder for updating a single Pet 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 a bulk of User entities.
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 builder for group-by User entities.
UserMutation represents an operation that mutate the Users nodes in the graph.
UserQuery is the builder for querying User entities.
UserSelect is the builder for select 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 fails.
# Type aliases
AggregateFunc applies an aggregation step on the group-by traversal/selector.
No description provided by the author
No description provided by the author
ent aliases to avoid import conflict in user's code.
ent aliases to avoid import conflict in user's code.
ent aliases to avoid import conflict in user's code.
ent aliases to avoid import conflict in user's code.
ent aliases to avoid import conflict in user's code.
Option function to configure the client.
OrderFunc applies an ordering on either graph traversal or sql selector.
Pets is a parsable slice of Pet.
ent aliases to avoid import conflict in user's code.
ent aliases to avoid import conflict in user's code.
No description provided by the author
No description provided by the author
Users is a parsable slice of User.
ent aliases to avoid import conflict in user's code.