# 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.
IsConstraintFailure returns a boolean indicating whether the error is a constraint failure.
IsNotFound returns a boolean indicating whether the error is a not found error.
IsNotSingular returns a boolean indicating whether the error is a not singular 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.
NewUserClient returns a client for the User from the given config.
Open opens a connection to the database specified by the driver name and a driver-specific data source name, and returns a new client attached to it.
Sum applies the "sum" aggregation function on the given field of each group.
# Structs
Aggregate applies an aggregation step on the group-by traversal/selector.
Client is the client that holds all ent builders.
ErrConstraintFailed returns when trying to create/update one or more entities and one or more of their constraints failed.
ErrNotFound returns when trying to fetch a specific entity and it was not found in the database.
ErrNotSingular returns when trying to fetch a singular entity and more then one was found in the database.
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.
UserDelete is the builder for deleting a User entity.
UserDeleteOne is the builder for deleting a single User entity.
UserGroupBy is the builder for group-by User entities.
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.