# 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
# 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.
NewClient creates a new client configured with the given options.
NewContext returns a new context with the given Client attached.
NewPermissionClient returns a client for the Permission from the given config.
NewPoliciesClient returns a client for the Policies from the given config.
NewRoleClient returns a client for the Role 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
# Variables
ErrTxStarted is returned when trying to start a new transaction from a transactional client.
# 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.
Permission is the model entity for the Permission schema.
PermissionClient is a client for the Permission schema.
PermissionCreate is the builder for creating a Permission entity.
PermissionCreateBulk is the builder for creating many Permission entities in bulk.
PermissionDelete is the builder for deleting a Permission entity.
PermissionDeleteOne is the builder for deleting a single Permission entity.
PermissionEdges holds the relations/edges for other nodes in the graph.
PermissionGroupBy is the group-by builder for Permission entities.
PermissionMutation represents an operation that mutates the Permission nodes in the graph.
PermissionQuery is the builder for querying Permission entities.
PermissionSelect is the builder for selecting fields of Permission entities.
PermissionUpdate is the builder for updating Permission entities.
PermissionUpdateOne is the builder for updating a single Permission entity.
Policies is the model entity for the Policies schema.
PoliciesClient is a client for the Policies schema.
PoliciesCreate is the builder for creating a Policies entity.
PoliciesCreateBulk is the builder for creating many Policies entities in bulk.
PoliciesDelete is the builder for deleting a Policies entity.
PoliciesDeleteOne is the builder for deleting a single Policies entity.
PoliciesEdges holds the relations/edges for other nodes in the graph.
PoliciesGroupBy is the group-by builder for Policies entities.
PoliciesMutation represents an operation that mutates the Policies nodes in the graph.
PoliciesQuery is the builder for querying Policies entities.
PoliciesSelect is the builder for selecting fields of Policies entities.
PoliciesUpdate is the builder for updating Policies entities.
PoliciesUpdateOne is the builder for updating a single Policies entity.
Role is the model entity for the Role schema.
RoleClient is a client for the Role schema.
RoleCreate is the builder for creating a Role entity.
RoleCreateBulk is the builder for creating many Role entities in bulk.
RoleDelete is the builder for deleting a Role entity.
RoleDeleteOne is the builder for deleting a single Role entity.
RoleEdges holds the relations/edges for other nodes in the graph.
RoleGroupBy is the group-by builder for Role entities.
RoleMutation represents an operation that mutates the Role nodes in the graph.
RoleQuery is the builder for querying Role entities.
RoleSelect is the builder for selecting fields of Role entities.
RoleUpdate is the builder for updating Role entities.
RoleUpdateOne is the builder for updating a single Role 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.
No description provided by the author
No description provided by the author
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.
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.
No description provided by the author
OrderFunc applies an ordering on the sql selector.
Permissions is a parsable slice of Permission.
PoliciesSlice is a parsable slice of Policies.
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.
ent aliases to avoid import conflicts in user's code.
Roles is a parsable slice of Role.
No description provided by the author
No description provided by the author
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.