Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Item) predicate.Item
- func HasCompartment() predicate.Item
- func HasCompartmentWith(preds ...predicate.Compartment) predicate.Item
- func ID(id int) predicate.Item
- func IDEQ(id int) predicate.Item
- func IDGT(id int) predicate.Item
- func IDGTE(id int) predicate.Item
- func IDIn(ids ...int) predicate.Item
- func IDLT(id int) predicate.Item
- func IDLTE(id int) predicate.Item
- func IDNEQ(id int) predicate.Item
- func IDNotIn(ids ...int) predicate.Item
- func Name(v string) predicate.Item
- func NameContains(v string) predicate.Item
- func NameContainsFold(v string) predicate.Item
- func NameEQ(v string) predicate.Item
- func NameEqualFold(v string) predicate.Item
- func NameGT(v string) predicate.Item
- func NameGTE(v string) predicate.Item
- func NameHasPrefix(v string) predicate.Item
- func NameHasSuffix(v string) predicate.Item
- func NameIn(vs ...string) predicate.Item
- func NameLT(v string) predicate.Item
- func NameLTE(v string) predicate.Item
- func NameNEQ(v string) predicate.Item
- func NameNotIn(vs ...string) predicate.Item
- func Not(p predicate.Item) predicate.Item
- func Or(predicates ...predicate.Item) predicate.Item
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the item type in the database. Label = "item" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // EdgeCompartment holds the string denoting the compartment edge name in mutations. EdgeCompartment = "compartment" // Table holds the table name of the item in the database. Table = "items" // CompartmentTable is the table that holds the compartment relation/edge. CompartmentTable = "items" // CompartmentInverseTable is the table name for the Compartment entity. // It exists in this package in order to avoid circular dependency with the "compartment" package. CompartmentInverseTable = "compartments" // CompartmentColumn is the table column denoting the compartment relation/edge. CompartmentColumn = "compartment_contents" )
Variables ¶
var Columns = []string{ FieldID, FieldName, }
Columns holds all SQL columns for item fields.
var ForeignKeys = []string{
"compartment_contents",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "items" table and are not defined as standalone fields in the schema.
Functions ¶
func HasCompartment ¶
HasCompartment applies the HasEdge predicate on the "compartment" edge.
func HasCompartmentWith ¶
func HasCompartmentWith(preds ...predicate.Compartment) predicate.Item
HasCompartmentWith applies the HasEdge predicate on the "compartment" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.