package
0.0.0-20220403165414-79ce300d6602
Repository: https://github.com/sundaytycoon/buttons-api.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
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.
NewUserClient returns a client for the User from the given config.
NewUserDeviceClient returns a client for the UserDevice from the given config.
NewUserMetaClient returns a client for the UserMeta from the given config.
NewUserOAuthProviderClient returns a client for the UserOAuthProvider 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
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.
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.
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.
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.
UserDevice is the model entity for the UserDevice schema.
UserDeviceClient is a client for the UserDevice schema.
UserDeviceCreate is the builder for creating a UserDevice entity.
UserDeviceCreateBulk is the builder for creating many UserDevice entities in bulk.
UserDeviceDelete is the builder for deleting a UserDevice entity.
UserDeviceDeleteOne is the builder for deleting a single UserDevice entity.
UserDeviceEdges holds the relations/edges for other nodes in the graph.
UserDeviceGroupBy is the group-by builder for UserDevice entities.
UserDeviceMutation represents an operation that mutates the UserDevice nodes in the graph.
UserDeviceQuery is the builder for querying UserDevice entities.
UserDeviceSelect is the builder for selecting fields of UserDevice entities.
UserDeviceUpdate is the builder for updating UserDevice entities.
UserDeviceUpdateOne is the builder for updating a single UserDevice entity.
UserEdges holds the relations/edges for other nodes in the graph.
UserGroupBy is the group-by builder for User entities.
UserMeta is the model entity for the UserMeta schema.
UserMetaClient is a client for the UserMeta schema.
UserMetaCreate is the builder for creating a UserMeta entity.
UserMetaCreateBulk is the builder for creating many UserMeta entities in bulk.
UserMetaDelete is the builder for deleting a UserMeta entity.
UserMetaDeleteOne is the builder for deleting a single UserMeta entity.
UserMetaEdges holds the relations/edges for other nodes in the graph.
UserMetaGroupBy is the group-by builder for UserMeta entities.
UserMetaMutation represents an operation that mutates the UserMeta nodes in the graph.
UserMetaQuery is the builder for querying UserMeta entities.
UserMetaSelect is the builder for selecting fields of UserMeta entities.
UserMetaUpdate is the builder for updating UserMeta entities.
UserMetaUpdateOne is the builder for updating a single UserMeta entity.
UserMutation represents an operation that mutates the User nodes in the graph.
UserOAuthProvider is the model entity for the UserOAuthProvider schema.
UserOAuthProviderClient is a client for the UserOAuthProvider schema.
UserOAuthProviderCreate is the builder for creating a UserOAuthProvider entity.
UserOAuthProviderCreateBulk is the builder for creating many UserOAuthProvider entities in bulk.
UserOAuthProviderDelete is the builder for deleting a UserOAuthProvider entity.
UserOAuthProviderDeleteOne is the builder for deleting a single UserOAuthProvider entity.
UserOAuthProviderEdges holds the relations/edges for other nodes in the graph.
UserOAuthProviderGroupBy is the group-by builder for UserOAuthProvider entities.
UserOAuthProviderMutation represents an operation that mutates the UserOAuthProvider nodes in the graph.
UserOAuthProviderQuery is the builder for querying UserOAuthProvider entities.
UserOAuthProviderSelect is the builder for selecting fields of UserOAuthProvider entities.
UserOAuthProviderUpdate is the builder for updating UserOAuthProvider entities.
UserOAuthProviderUpdateOne is the builder for updating a single UserOAuthProvider entity.
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.

# Interfaces

No description provided by the author
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.
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.
No description provided by the author
No description provided by the author
Sessions is a parsable slice of Session.
UserDevices is a parsable slice of UserDevice.
UserMetaSlice is a parsable slice of UserMeta.
UserOAuthProviders is a parsable slice of UserOAuthProvider.
Users is a parsable slice of User.
ent aliases to avoid import conflicts in user's code.