# 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.
NewCurrencyClient returns a client for the Currency from the given config.
NewRewardClient returns a client for the Reward from the given config.
NewTxContext returns a new context with the given Tx attached.
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
# 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.
Currency is the model entity for the Currency schema.
CurrencyClient is a client for the Currency schema.
CurrencyCreate is the builder for creating a Currency entity.
CurrencyCreateBulk is the builder for creating many Currency entities in bulk.
CurrencyDelete is the builder for deleting a Currency entity.
CurrencyDeleteOne is the builder for deleting a single Currency entity.
CurrencyFilter provides a generic filtering capability at runtime for CurrencyQuery.
CurrencyGroupBy is the group-by builder for Currency entities.
CurrencyMutation represents an operation that mutates the Currency nodes in the graph.
CurrencyQuery is the builder for querying Currency entities.
CurrencySelect is the builder for selecting fields of Currency entities.
CurrencyUpdate is the builder for updating Currency entities.
CurrencyUpdateOne is the builder for updating a single Currency entity.
No description provided by the author
CurrencyUpsertBulk is the builder for "upsert"-ing a bulk of Currency 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.
Reward is the model entity for the Reward schema.
RewardClient is a client for the Reward schema.
RewardCreate is the builder for creating a Reward entity.
RewardCreateBulk is the builder for creating many Reward entities in bulk.
RewardDelete is the builder for deleting a Reward entity.
RewardDeleteOne is the builder for deleting a single Reward entity.
RewardFilter provides a generic filtering capability at runtime for RewardQuery.
RewardGroupBy is the group-by builder for Reward entities.
RewardMutation represents an operation that mutates the Reward nodes in the graph.
RewardQuery is the builder for querying Reward entities.
RewardSelect is the builder for selecting fields of Reward entities.
RewardUpdate is the builder for updating Reward entities.
RewardUpdateOne is the builder for updating a single Reward entity.
No description provided by the author
RewardUpsertBulk is the builder for "upsert"-ing a bulk of Reward 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.
# 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
Currencies is a parsable slice of Currency.
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.
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.
Rewards is a parsable slice of Reward.
No description provided by the author
No description provided by the author
ent aliases to avoid import conflicts in user's code.