Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Fridge) predicate.Fridge
- func HasCompartments() predicate.Fridge
- func HasCompartmentsWith(preds ...predicate.Compartment) predicate.Fridge
- func ID(id int) predicate.Fridge
- func IDEQ(id int) predicate.Fridge
- func IDGT(id int) predicate.Fridge
- func IDGTE(id int) predicate.Fridge
- func IDIn(ids ...int) predicate.Fridge
- func IDLT(id int) predicate.Fridge
- func IDLTE(id int) predicate.Fridge
- func IDNEQ(id int) predicate.Fridge
- func IDNotIn(ids ...int) predicate.Fridge
- func Not(p predicate.Fridge) predicate.Fridge
- func Or(predicates ...predicate.Fridge) predicate.Fridge
- func Title(v string) predicate.Fridge
- func TitleContains(v string) predicate.Fridge
- func TitleContainsFold(v string) predicate.Fridge
- func TitleEQ(v string) predicate.Fridge
- func TitleEqualFold(v string) predicate.Fridge
- func TitleGT(v string) predicate.Fridge
- func TitleGTE(v string) predicate.Fridge
- func TitleHasPrefix(v string) predicate.Fridge
- func TitleHasSuffix(v string) predicate.Fridge
- func TitleIn(vs ...string) predicate.Fridge
- func TitleLT(v string) predicate.Fridge
- func TitleLTE(v string) predicate.Fridge
- func TitleNEQ(v string) predicate.Fridge
- func TitleNotIn(vs ...string) predicate.Fridge
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the fridge type in the database. Label = "fridge" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldTitle holds the string denoting the title field in the database. FieldTitle = "title" // EdgeCompartments holds the string denoting the compartments edge name in mutations. EdgeCompartments = "compartments" // Table holds the table name of the fridge in the database. Table = "fridges" // CompartmentsTable is the table that holds the compartments relation/edge. CompartmentsTable = "compartments" // CompartmentsInverseTable is the table name for the Compartment entity. // It exists in this package in order to avoid circular dependency with the "compartment" package. CompartmentsInverseTable = "compartments" // CompartmentsColumn is the table column denoting the compartments relation/edge. CompartmentsColumn = "fridge_compartments" )
Variables ¶
var Columns = []string{ FieldID, FieldTitle, }
Columns holds all SQL columns for fridge fields.
Functions ¶
func HasCompartments ¶
HasCompartments applies the HasEdge predicate on the "compartments" edge.
func HasCompartmentsWith ¶
func HasCompartmentsWith(preds ...predicate.Compartment) predicate.Fridge
HasCompartmentsWith applies the HasEdge predicate on the "compartments" edge with a given conditions (other predicates).
func Title ¶
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEqualFold ¶
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleHasPrefix ¶
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleNotIn ¶
TitleNotIn applies the NotIn predicate on the "title" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.