package
0.0.0-20230913015246-1d588150cabc
Repository: https://github.com/ogen-go/ent2ogen.git
Documentation: pkg.go.dev
# Functions
And groups predicates with the AND operator between them.
ByID orders the results by the id field.
ByName orders the results by the name field.
BySwitchType orders the results by the switch_type field.
ID filters vertices based on their ID field.
IDEQ applies the EQ predicate on the ID field.
IDGT applies the GT predicate on the ID field.
IDGTE applies the GTE predicate on the ID field.
IDIn applies the In predicate on the ID field.
IDLT applies the LT predicate on the ID field.
IDLTE applies the LTE predicate on the ID field.
IDNEQ applies the NEQ predicate on the ID field.
IDNotIn applies the NotIn predicate on the ID field.
Name applies equality check predicate on the "name" field.
NameContains applies the Contains predicate on the "name" field.
NameContainsFold applies the ContainsFold predicate on the "name" field.
NameEQ applies the EQ predicate on the "name" field.
NameEqualFold applies the EqualFold predicate on the "name" field.
NameGT applies the GT predicate on the "name" field.
NameGTE applies the GTE predicate on the "name" field.
NameHasPrefix applies the HasPrefix predicate on the "name" field.
NameHasSuffix applies the HasSuffix predicate on the "name" field.
NameIn applies the In predicate on the "name" field.
NameLT applies the LT predicate on the "name" field.
NameLTE applies the LTE predicate on the "name" field.
NameNEQ applies the NEQ predicate on the "name" field.
NameNotIn applies the NotIn predicate on the "name" field.
Not applies the not operator on the given predicate.
Or groups predicates with the OR operator between them.
SwitchTypeEQ applies the EQ predicate on the "switch_type" field.
SwitchTypeIn applies the In predicate on the "switch_type" field.
SwitchTypeNEQ applies the NEQ predicate on the "switch_type" field.
SwitchTypeNotIn applies the NotIn predicate on the "switch_type" field.
SwitchTypeValidator is a validator for the "switch_type" field enum values.
ValidColumn reports if the column name is valid (part of the table columns).
# Constants
FieldID holds the string denoting the id field in the database.
FieldName holds the string denoting the name field in the database.
FieldSwitchType holds the string denoting the switch_type field in the database.
Label holds the string label denoting the switchmodel type in the database.
SwitchType values.
SwitchType values.
SwitchType values.
Table holds the table name of the switchmodel in the database.
# Variables
Columns holds all SQL columns for switchmodel fields.
NameValidator is a validator for the "name" field.
# Type aliases
OrderOption defines the ordering options for the SwitchModel queries.
SwitchType defines the type for the "switch_type" enum field.