package
0.0.0-20241009043613-9815a5a674aa
Repository: https://github.com/nautilusgames/demo.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
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.
NewSessionClient returns a client for the Session from the given config.
NewTxContext returns a new context with the given Tx attached.
NewWalletClient returns a client for the Wallet 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
# 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.
Session is the model entity for the Session schema.
SessionClient is a client for the Session schema.
SessionCreate is the builder for creating a Session entity.
SessionCreateBulk is the builder for creating many Session entities in bulk.
SessionDelete is the builder for deleting a Session entity.
SessionDeleteOne is the builder for deleting a single Session entity.
SessionFilter provides a generic filtering capability at runtime for SessionQuery.
SessionGroupBy is the group-by builder for Session entities.
SessionMutation represents an operation that mutates the Session nodes in the graph.
SessionQuery is the builder for querying Session entities.
SessionSelect is the builder for selecting fields of Session entities.
SessionUpdate is the builder for updating Session entities.
SessionUpdateOne is the builder for updating a single Session entity.
No description provided by the author
SessionUpsertBulk is the builder for "upsert"-ing a bulk of Session 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.
Wallet is the model entity for the Wallet schema.
WalletClient is a client for the Wallet schema.
WalletCreate is the builder for creating a Wallet entity.
WalletCreateBulk is the builder for creating many Wallet entities in bulk.
WalletDelete is the builder for deleting a Wallet entity.
WalletDeleteOne is the builder for deleting a single Wallet entity.
WalletFilter provides a generic filtering capability at runtime for WalletQuery.
WalletGroupBy is the group-by builder for Wallet entities.
WalletMutation represents an operation that mutates the Wallet nodes in the graph.
WalletQuery is the builder for querying Wallet entities.
WalletSelect is the builder for selecting fields of Wallet entities.
WalletUpdate is the builder for updating Wallet entities.
WalletUpdateOne is the builder for updating a single Wallet entity.
No description provided by the author
WalletUpsertBulk is the builder for "upsert"-ing a bulk of Wallet 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.
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.
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
No description provided by the author
Sessions is a parsable slice of Session.
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.
Wallets is a parsable slice of Wallet.