package
0.0.0-20230913015246-1d588150cabc
Repository: https://github.com/ogen-go/ent2ogen.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
# 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.
Following edges must be loaded:
switches keycaps.
No description provided by the author
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.
NewKeyboardClient returns a client for the Keyboard from the given config.
NewKeycapModelClient returns a client for the KeycapModel from the given config.
NewSwitchModelClient returns a client for the SwitchModel 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.
Sum applies the "sum" aggregation function on the given field of each group.
No description provided by the author
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
# 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.
Keyboard is the model entity for the Keyboard schema.
KeyboardClient is a client for the Keyboard schema.
KeyboardCreate is the builder for creating a Keyboard entity.
KeyboardCreateBulk is the builder for creating many Keyboard entities in bulk.
KeyboardDelete is the builder for deleting a Keyboard entity.
KeyboardDeleteOne is the builder for deleting a single Keyboard entity.
KeyboardEdges holds the relations/edges for other nodes in the graph.
KeyboardGroupBy is the group-by builder for Keyboard entities.
KeyboardMutation represents an operation that mutates the Keyboard nodes in the graph.
KeyboardQuery is the builder for querying Keyboard entities.
KeyboardSelect is the builder for selecting fields of Keyboard entities.
KeyboardUpdate is the builder for updating Keyboard entities.
KeyboardUpdateOne is the builder for updating a single Keyboard entity.
KeycapModel is the model entity for the KeycapModel schema.
KeycapModelClient is a client for the KeycapModel schema.
KeycapModelCreate is the builder for creating a KeycapModel entity.
KeycapModelCreateBulk is the builder for creating many KeycapModel entities in bulk.
KeycapModelDelete is the builder for deleting a KeycapModel entity.
KeycapModelDeleteOne is the builder for deleting a single KeycapModel entity.
KeycapModelGroupBy is the group-by builder for KeycapModel entities.
KeycapModelMutation represents an operation that mutates the KeycapModel nodes in the graph.
KeycapModelQuery is the builder for querying KeycapModel entities.
KeycapModelSelect is the builder for selecting fields of KeycapModel entities.
KeycapModelUpdate is the builder for updating KeycapModel entities.
KeycapModelUpdateOne is the builder for updating a single KeycapModel entity.
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.
SwitchModel is the model entity for the SwitchModel schema.
SwitchModelClient is a client for the SwitchModel schema.
SwitchModelCreate is the builder for creating a SwitchModel entity.
SwitchModelCreateBulk is the builder for creating many SwitchModel entities in bulk.
SwitchModelDelete is the builder for deleting a SwitchModel entity.
SwitchModelDeleteOne is the builder for deleting a single SwitchModel entity.
SwitchModelGroupBy is the group-by builder for SwitchModel entities.
SwitchModelMutation represents an operation that mutates the SwitchModel nodes in the graph.
SwitchModelQuery is the builder for querying SwitchModel entities.
SwitchModelSelect is the builder for selecting fields of SwitchModel entities.
SwitchModelUpdate is the builder for updating SwitchModel entities.
SwitchModelUpdateOne is the builder for updating a single SwitchModel entity.
Tx is a transactional client that is created by calling Client.Tx().
ValidationError returns when validating a field or edge fails.
# 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.
Keyboards is a parsable slice of Keyboard.
KeycapModels is a parsable slice of KeycapModel.
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
SwitchModels is a parsable slice of SwitchModel.
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.