package
1.2.1
Repository: https://github.com/common-library/go.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.
NewClient creates a new client configured with the given options.
NewContext returns a new context with the given Client attached.
NewIssueForEntClient returns a client for the IssueForEnt from the given config.
NewRepositoryForEntClient returns a client for the RepositoryForEnt from the given config.
NewTable01ForEntClient returns a client for the Table01ForEnt from the given config.
NewTxContext returns a new context with the given Tx attached.
NewUserForEntClient returns a client for the UserForEnt 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

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.
IssueForEnt is the model entity for the IssueForEnt schema.
IssueForEntClient is a client for the IssueForEnt schema.
IssueForEntCreate is the builder for creating a IssueForEnt entity.
IssueForEntCreateBulk is the builder for creating many IssueForEnt entities in bulk.
IssueForEntDelete is the builder for deleting a IssueForEnt entity.
IssueForEntDeleteOne is the builder for deleting a single IssueForEnt entity.
IssueForEntEdges holds the relations/edges for other nodes in the graph.
IssueForEntGroupBy is the group-by builder for IssueForEnt entities.
IssueForEntMutation represents an operation that mutates the IssueForEnt nodes in the graph.
IssueForEntQuery is the builder for querying IssueForEnt entities.
IssueForEntSelect is the builder for selecting fields of IssueForEnt entities.
IssueForEntUpdate is the builder for updating IssueForEnt entities.
IssueForEntUpdateOne is the builder for updating a single IssueForEnt entity.
No description provided by the author
IssueForEntUpsertBulk is the builder for "upsert"-ing a bulk of IssueForEnt 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.
RepositoryForEnt is the model entity for the RepositoryForEnt schema.
RepositoryForEntClient is a client for the RepositoryForEnt schema.
RepositoryForEntCreate is the builder for creating a RepositoryForEnt entity.
RepositoryForEntCreateBulk is the builder for creating many RepositoryForEnt entities in bulk.
RepositoryForEntDelete is the builder for deleting a RepositoryForEnt entity.
RepositoryForEntDeleteOne is the builder for deleting a single RepositoryForEnt entity.
RepositoryForEntEdges holds the relations/edges for other nodes in the graph.
RepositoryForEntGroupBy is the group-by builder for RepositoryForEnt entities.
RepositoryForEntMutation represents an operation that mutates the RepositoryForEnt nodes in the graph.
RepositoryForEntQuery is the builder for querying RepositoryForEnt entities.
RepositoryForEntSelect is the builder for selecting fields of RepositoryForEnt entities.
RepositoryForEntUpdate is the builder for updating RepositoryForEnt entities.
RepositoryForEntUpdateOne is the builder for updating a single RepositoryForEnt entity.
No description provided by the author
RepositoryForEntUpsertBulk is the builder for "upsert"-ing a bulk of RepositoryForEnt nodes.
No description provided by the author
Table01ForEnt is the model entity for the Table01ForEnt schema.
Table01ForEntClient is a client for the Table01ForEnt schema.
Table01ForEntCreate is the builder for creating a Table01ForEnt entity.
Table01ForEntCreateBulk is the builder for creating many Table01ForEnt entities in bulk.
Table01ForEntDelete is the builder for deleting a Table01ForEnt entity.
Table01ForEntDeleteOne is the builder for deleting a single Table01ForEnt entity.
Table01ForEntGroupBy is the group-by builder for Table01ForEnt entities.
Table01ForEntMutation represents an operation that mutates the Table01ForEnt nodes in the graph.
Table01ForEntQuery is the builder for querying Table01ForEnt entities.
Table01ForEntSelect is the builder for selecting fields of Table01ForEnt entities.
Table01ForEntUpdate is the builder for updating Table01ForEnt entities.
Table01ForEntUpdateOne is the builder for updating a single Table01ForEnt entity.
No description provided by the author
Table01ForEntUpsertBulk is the builder for "upsert"-ing a bulk of Table01ForEnt nodes.
No description provided by the author
Tx is a transactional client that is created by calling Client.Tx().
UserForEnt is the model entity for the UserForEnt schema.
UserForEntClient is a client for the UserForEnt schema.
UserForEntCreate is the builder for creating a UserForEnt entity.
UserForEntCreateBulk is the builder for creating many UserForEnt entities in bulk.
UserForEntDelete is the builder for deleting a UserForEnt entity.
UserForEntDeleteOne is the builder for deleting a single UserForEnt entity.
UserForEntEdges holds the relations/edges for other nodes in the graph.
UserForEntGroupBy is the group-by builder for UserForEnt entities.
UserForEntMutation represents an operation that mutates the UserForEnt nodes in the graph.
UserForEntQuery is the builder for querying UserForEnt entities.
UserForEntSelect is the builder for selecting fields of UserForEnt entities.
UserForEntUpdate is the builder for updating UserForEnt entities.
UserForEntUpdateOne is the builder for updating a single UserForEnt entity.
No description provided by the author
UserForEntUpsertBulk is the builder for "upsert"-ing a bulk of UserForEnt nodes.
No description provided by the author
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.
IssueForEnts is a parsable slice of IssueForEnt.
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.
RepositoryForEnts is a parsable slice of RepositoryForEnt.
No description provided by the author
No description provided by the author
Table01ForEnts is a parsable slice of Table01ForEnt.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
UserForEnts is a parsable slice of UserForEnt.
ent aliases to avoid import conflicts in user's code.