Documentation
¶
Index ¶
- Constants
- Variables
- func Amount(v float64) predicate.Ingredient
- func AmountEQ(v float64) predicate.Ingredient
- func AmountGT(v float64) predicate.Ingredient
- func AmountGTE(v float64) predicate.Ingredient
- func AmountIn(vs ...float64) predicate.Ingredient
- func AmountLT(v float64) predicate.Ingredient
- func AmountLTE(v float64) predicate.Ingredient
- func AmountNEQ(v float64) predicate.Ingredient
- func AmountNotIn(vs ...float64) predicate.Ingredient
- func And(predicates ...predicate.Ingredient) predicate.Ingredient
- func ID(id string) predicate.Ingredient
- func IDEQ(id string) predicate.Ingredient
- func IDGT(id string) predicate.Ingredient
- func IDGTE(id string) predicate.Ingredient
- func IDIn(ids ...string) predicate.Ingredient
- func IDLT(id string) predicate.Ingredient
- func IDLTE(id string) predicate.Ingredient
- func IDNEQ(id string) predicate.Ingredient
- func IDNotIn(ids ...string) predicate.Ingredient
- func Kind(v string) predicate.Ingredient
- func KindContains(v string) predicate.Ingredient
- func KindContainsFold(v string) predicate.Ingredient
- func KindEQ(v string) predicate.Ingredient
- func KindEqualFold(v string) predicate.Ingredient
- func KindGT(v string) predicate.Ingredient
- func KindGTE(v string) predicate.Ingredient
- func KindHasPrefix(v string) predicate.Ingredient
- func KindHasSuffix(v string) predicate.Ingredient
- func KindIn(vs ...string) predicate.Ingredient
- func KindLT(v string) predicate.Ingredient
- func KindLTE(v string) predicate.Ingredient
- func KindNEQ(v string) predicate.Ingredient
- func KindNotIn(vs ...string) predicate.Ingredient
- func Not(p predicate.Ingredient) predicate.Ingredient
- func Or(predicates ...predicate.Ingredient) predicate.Ingredient
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the ingredient type in the database. Label = "ingredient" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldKind holds the string denoting the kind field in the database. FieldKind = "kind" // FieldAmount holds the string denoting the amount field in the database. FieldAmount = "amount" // Table holds the table name of the ingredient in the database. Table = "ingredients" )
Variables ¶
var Columns = []string{ FieldID, FieldKind, FieldAmount, }
Columns holds all SQL columns for ingredient fields.
var ( // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(string) error )
Functions ¶
func Amount ¶
func Amount(v float64) predicate.Ingredient
Amount applies equality check predicate on the "amount" field. It's identical to AmountEQ.
func AmountEQ ¶
func AmountEQ(v float64) predicate.Ingredient
AmountEQ applies the EQ predicate on the "amount" field.
func AmountGT ¶
func AmountGT(v float64) predicate.Ingredient
AmountGT applies the GT predicate on the "amount" field.
func AmountGTE ¶
func AmountGTE(v float64) predicate.Ingredient
AmountGTE applies the GTE predicate on the "amount" field.
func AmountIn ¶
func AmountIn(vs ...float64) predicate.Ingredient
AmountIn applies the In predicate on the "amount" field.
func AmountLT ¶
func AmountLT(v float64) predicate.Ingredient
AmountLT applies the LT predicate on the "amount" field.
func AmountLTE ¶
func AmountLTE(v float64) predicate.Ingredient
AmountLTE applies the LTE predicate on the "amount" field.
func AmountNEQ ¶
func AmountNEQ(v float64) predicate.Ingredient
AmountNEQ applies the NEQ predicate on the "amount" field.
func AmountNotIn ¶
func AmountNotIn(vs ...float64) predicate.Ingredient
AmountNotIn applies the NotIn predicate on the "amount" field.
func And ¶
func And(predicates ...predicate.Ingredient) predicate.Ingredient
And groups predicates with the AND operator between them.
func IDEQ ¶
func IDEQ(id string) predicate.Ingredient
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id string) predicate.Ingredient
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id string) predicate.Ingredient
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...string) predicate.Ingredient
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id string) predicate.Ingredient
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id string) predicate.Ingredient
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id string) predicate.Ingredient
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...string) predicate.Ingredient
IDNotIn applies the NotIn predicate on the ID field.
func Kind ¶
func Kind(v string) predicate.Ingredient
Kind applies equality check predicate on the "kind" field. It's identical to KindEQ.
func KindContains ¶
func KindContains(v string) predicate.Ingredient
KindContains applies the Contains predicate on the "kind" field.
func KindContainsFold ¶
func KindContainsFold(v string) predicate.Ingredient
KindContainsFold applies the ContainsFold predicate on the "kind" field.
func KindEQ ¶
func KindEQ(v string) predicate.Ingredient
KindEQ applies the EQ predicate on the "kind" field.
func KindEqualFold ¶
func KindEqualFold(v string) predicate.Ingredient
KindEqualFold applies the EqualFold predicate on the "kind" field.
func KindGT ¶
func KindGT(v string) predicate.Ingredient
KindGT applies the GT predicate on the "kind" field.
func KindGTE ¶
func KindGTE(v string) predicate.Ingredient
KindGTE applies the GTE predicate on the "kind" field.
func KindHasPrefix ¶
func KindHasPrefix(v string) predicate.Ingredient
KindHasPrefix applies the HasPrefix predicate on the "kind" field.
func KindHasSuffix ¶
func KindHasSuffix(v string) predicate.Ingredient
KindHasSuffix applies the HasSuffix predicate on the "kind" field.
func KindIn ¶
func KindIn(vs ...string) predicate.Ingredient
KindIn applies the In predicate on the "kind" field.
func KindLT ¶
func KindLT(v string) predicate.Ingredient
KindLT applies the LT predicate on the "kind" field.
func KindLTE ¶
func KindLTE(v string) predicate.Ingredient
KindLTE applies the LTE predicate on the "kind" field.
func KindNEQ ¶
func KindNEQ(v string) predicate.Ingredient
KindNEQ applies the NEQ predicate on the "kind" field.
func KindNotIn ¶
func KindNotIn(vs ...string) predicate.Ingredient
KindNotIn applies the NotIn predicate on the "kind" field.
func Not ¶
func Not(p predicate.Ingredient) predicate.Ingredient
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Ingredient) predicate.Ingredient
Or groups predicates with the OR operator between them.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.