package
0.1.0
Repository: https://github.com/datumforge/go-template.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

AlternateSchemas allows alternate schema names to be passed into ent operations.
As is a pseudo aggregation function for renaming another other functions with custom names.
Asc applies the given fields in ASC order.
Authz configures the Authz.
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.
HTTPClient configures the HTTPClient.
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.
Logger configures the Logger.
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.
NewTodoClient returns a client for the Todo 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.
OpenTxFromContext open transactions from client stored in context.
SecretsKeeper configures the SecretsKeeper.
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.
WithFixedNodeType sets the Type of the node to a fixed value.
WithNodeType sets the node Type resolver function (i.e.
WithTodoFilter configures pagination filter.
WithTodoOrder configures pagination ordering.

# 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.

# Variables

DefaultTodoOrder is the default ordering of Todo.
ErrEmptyTodoWhereInput is returned in case the TodoWhereInput is empty.
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.
CreateTodoInput represents a mutation input for creating todos.
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.
Todo is the model entity for the Todo schema.
TodoClient is a client for the Todo schema.
TodoConnection is the connection containing edges to Todo.
TodoCreate is the builder for creating a Todo entity.
TodoCreateBulk is the builder for creating many Todo entities in bulk.
TodoDelete is the builder for deleting a Todo entity.
TodoDeleteOne is the builder for deleting a single Todo entity.
TodoEdge is the edge representation of Todo.
TodoFilter provides a generic filtering capability at runtime for TodoQuery.
TodoGroupBy is the group-by builder for Todo entities.
TodoMutation represents an operation that mutates the Todo nodes in the graph.
TodoOrder defines the ordering of Todo.
TodoOrderField defines the ordering field of Todo.
TodoQuery is the builder for querying Todo entities.
TodoSelect is the builder for selecting fields of Todo entities.
TodoUpdate is the builder for updating Todo entities.
TodoUpdateOne is the builder for updating a single Todo entity.
TodoWhereInput represents a where input for filtering Todo queries.
Tx is a transactional client that is created by calling Client.Tx().
UpdateTodoInput represents a mutation input for updating todos.
ValidationError returns when validating a field or edge fails.

# Interfaces

No description provided by the author
Noder wraps the basic Node method.
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.
NodeOption allows configuring the Noder execution using functional options.
ent aliases to avoid import conflicts in user's code.
No description provided by the author
Common entgql types.
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
SchemaConfig represents alternative schema names for all tables that can be passed at runtime.
TodoPaginateOption enables pagination customization.
Todos is a parsable slice of Todo.
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.