package
0.0.0-20241115152746-6b37c952dfcd
Repository: https://github.com/ophum/github-teams-oauth2.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
# 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.
NewAccessTokenClient returns a client for the AccessToken from the given config.
NewClient creates a new client configured with the given options.
NewCodeClient returns a client for the Code from the given config.
NewContext returns a new context with the given Client attached.
NewGroupClient returns a client for the Group 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.
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
# Variables
ErrTxStarted is returned when trying to start a new transaction from a transactional client.
# Structs
AccessToken is the model entity for the AccessToken schema.
AccessTokenClient is a client for the AccessToken schema.
AccessTokenCreate is the builder for creating a AccessToken entity.
AccessTokenCreateBulk is the builder for creating many AccessToken entities in bulk.
AccessTokenDelete is the builder for deleting a AccessToken entity.
AccessTokenDeleteOne is the builder for deleting a single AccessToken entity.
AccessTokenEdges holds the relations/edges for other nodes in the graph.
AccessTokenGroupBy is the group-by builder for AccessToken entities.
AccessTokenMutation represents an operation that mutates the AccessToken nodes in the graph.
AccessTokenQuery is the builder for querying AccessToken entities.
AccessTokenSelect is the builder for selecting fields of AccessToken entities.
AccessTokenUpdate is the builder for updating AccessToken entities.
AccessTokenUpdateOne is the builder for updating a single AccessToken entity.
No description provided by the author
AccessTokenUpsertBulk is the builder for "upsert"-ing a bulk of AccessToken nodes.
No description provided by the author
Client is the client that holds all ent builders.
Code is the model entity for the Code schema.
CodeClient is a client for the Code schema.
CodeCreate is the builder for creating a Code entity.
CodeCreateBulk is the builder for creating many Code entities in bulk.
CodeDelete is the builder for deleting a Code entity.
CodeDeleteOne is the builder for deleting a single Code entity.
CodeEdges holds the relations/edges for other nodes in the graph.
CodeGroupBy is the group-by builder for Code entities.
CodeMutation represents an operation that mutates the Code nodes in the graph.
CodeQuery is the builder for querying Code entities.
CodeSelect is the builder for selecting fields of Code entities.
CodeUpdate is the builder for updating Code entities.
CodeUpdateOne is the builder for updating a single Code entity.
No description provided by the author
CodeUpsertBulk is the builder for "upsert"-ing a bulk of Code nodes.
No description provided by the author
ConstraintError returns when trying to create/update one or more entities and one or more of their constraints failed.
Group is the model entity for the Group schema.
GroupClient is a client for the Group schema.
GroupCreate is the builder for creating a Group entity.
GroupCreateBulk is the builder for creating many Group entities in bulk.
GroupDelete is the builder for deleting a Group entity.
GroupDeleteOne is the builder for deleting a single Group entity.
GroupEdges holds the relations/edges for other nodes in the graph.
GroupGroupBy is the group-by builder for Group entities.
GroupMutation represents an operation that mutates the Group nodes in the graph.
GroupQuery is the builder for querying Group entities.
GroupSelect is the builder for selecting fields of Group entities.
GroupUpdate is the builder for updating Group entities.
GroupUpdateOne is the builder for updating a single Group entity.
No description provided by the author
GroupUpsertBulk is the builder for "upsert"-ing a bulk of Group 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.
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.
UserEdges holds the relations/edges for other nodes in the graph.
UserGroupBy is the group-by builder for User entities.
UserMutation represents an operation that mutates the User nodes in the graph.
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.
No description provided by the author
UserUpsertBulk is the builder for "upsert"-ing a bulk of User nodes.
No description provided by the author
ValidationError returns when validating a field or edge fails.
# Type aliases
AccessTokens is a parsable slice of AccessToken.
AggregateFunc applies an aggregation step on the group-by traversal/selector.
Codes is a parsable slice of Code.
No description provided by the author
No description provided by the author
Groups is a parsable slice of Group.
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
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
Users is a parsable slice of User.
ent aliases to avoid import conflicts in user's code.