package
1.2.1
Repository: https://github.com/go-magma/magma.git
Documentation: pkg.go.dev

# 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

# 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.
NewBlobClient returns a client for the Blob from the given config.
NewClient creates a new client configured with the given options.
NewContext returns a new context with the given Client attached.
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.
Blob is the model entity for the Blob schema.
BlobClient is a client for the Blob schema.
BlobCreate is the builder for creating a Blob entity.
BlobDelete is the builder for deleting a Blob entity.
BlobDeleteOne is the builder for deleting a single Blob entity.
BlobGroupBy is the builder for group-by Blob entities.
BlobQuery is the builder for querying Blob entities.
BlobSelect is the builder for select fields of Blob entities.
BlobUpdate is the builder for updating Blob entities.
BlobUpdateOne is the builder for updating a single Blob entity.
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().

# Type aliases

Blobs is a parsable slice of Blob.
Option function to configure the client.
Order applies an ordering on either graph traversal or sql selector.