# 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 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.
NewInstructClient returns a client for the Instruct from the given config.
NewResourceClient returns a client for the Resource from the given config.
NewTxContext returns a new context with the given Tx attached.
NewVersionClient returns a client for the Version 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
# 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.
Instruct is the model entity for the Instruct schema.
InstructClient is a client for the Instruct schema.
InstructCreate is the builder for creating a Instruct entity.
InstructCreateBulk is the builder for creating many Instruct entities in bulk.
InstructDelete is the builder for deleting a Instruct entity.
InstructDeleteOne is the builder for deleting a single Instruct entity.
InstructGroupBy is the group-by builder for Instruct entities.
InstructMutation represents an operation that mutates the Instruct nodes in the graph.
InstructQuery is the builder for querying Instruct entities.
InstructSelect is the builder for selecting fields of Instruct entities.
InstructUpdate is the builder for updating Instruct entities.
InstructUpdateOne is the builder for updating a single Instruct entity.
No description provided by the author
InstructUpsertBulk is the builder for "upsert"-ing a bulk of Instruct nodes.
No description provided by the author
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.
Resource is the model entity for the Resource schema.
ResourceClient is a client for the Resource schema.
ResourceCreate is the builder for creating a Resource entity.
ResourceCreateBulk is the builder for creating many Resource entities in bulk.
ResourceDelete is the builder for deleting a Resource entity.
ResourceDeleteOne is the builder for deleting a single Resource entity.
ResourceGroupBy is the group-by builder for Resource entities.
ResourceMutation represents an operation that mutates the Resource nodes in the graph.
ResourceQuery is the builder for querying Resource entities.
ResourceSelect is the builder for selecting fields of Resource entities.
ResourceUpdate is the builder for updating Resource entities.
ResourceUpdateOne is the builder for updating a single Resource entity.
No description provided by the author
ResourceUpsertBulk is the builder for "upsert"-ing a bulk of Resource nodes.
No description provided by the author
Tx is a transactional client that is created by calling Client.Tx().
ValidationError returns when validating a field or edge fails.
Version is the model entity for the Version schema.
VersionClient is a client for the Version schema.
VersionCreate is the builder for creating a Version entity.
VersionCreateBulk is the builder for creating many Version entities in bulk.
VersionDelete is the builder for deleting a Version entity.
VersionDeleteOne is the builder for deleting a single Version entity.
VersionGroupBy is the group-by builder for Version entities.
VersionMutation represents an operation that mutates the Version nodes in the graph.
VersionQuery is the builder for querying Version entities.
VersionSelect is the builder for selecting fields of Version entities.
VersionUpdate is the builder for updating Version entities.
VersionUpdateOne is the builder for updating a single Version entity.
No description provided by the author
VersionUpsertBulk is the builder for "upsert"-ing a bulk of Version nodes.
No description provided by the author
# 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.
Instructs is a parsable slice of Instruct.
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.
Option function to configure the client.
OrderFunc applies an ordering on the sql selector.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
Resources is a parsable slice of Resource.
No description provided by the author
No description provided by the author
ent aliases to avoid import conflicts in user's code.
Versions is a parsable slice of Version.