Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.RecipeIngredient) predicate.RecipeIngredient
- func HasIngredient() predicate.RecipeIngredient
- func HasIngredientWith(preds ...predicate.Ingredient) predicate.RecipeIngredient
- func ID(id int) predicate.RecipeIngredient
- func IDEQ(id int) predicate.RecipeIngredient
- func IDGT(id int) predicate.RecipeIngredient
- func IDGTE(id int) predicate.RecipeIngredient
- func IDIn(ids ...int) predicate.RecipeIngredient
- func IDLT(id int) predicate.RecipeIngredient
- func IDLTE(id int) predicate.RecipeIngredient
- func IDNEQ(id int) predicate.RecipeIngredient
- func IDNotIn(ids ...int) predicate.RecipeIngredient
- func Not(p predicate.RecipeIngredient) predicate.RecipeIngredient
- func Or(predicates ...predicate.RecipeIngredient) predicate.RecipeIngredient
- func Quantity(v float32) predicate.RecipeIngredient
- func QuantityEQ(v float32) predicate.RecipeIngredient
- func QuantityGT(v float32) predicate.RecipeIngredient
- func QuantityGTE(v float32) predicate.RecipeIngredient
- func QuantityIn(vs ...float32) predicate.RecipeIngredient
- func QuantityLT(v float32) predicate.RecipeIngredient
- func QuantityLTE(v float32) predicate.RecipeIngredient
- func QuantityNEQ(v float32) predicate.RecipeIngredient
- func QuantityNotIn(vs ...float32) predicate.RecipeIngredient
- func Unit(v string) predicate.RecipeIngredient
- func UnitContains(v string) predicate.RecipeIngredient
- func UnitContainsFold(v string) predicate.RecipeIngredient
- func UnitEQ(v string) predicate.RecipeIngredient
- func UnitEqualFold(v string) predicate.RecipeIngredient
- func UnitGT(v string) predicate.RecipeIngredient
- func UnitGTE(v string) predicate.RecipeIngredient
- func UnitHasPrefix(v string) predicate.RecipeIngredient
- func UnitHasSuffix(v string) predicate.RecipeIngredient
- func UnitIn(vs ...string) predicate.RecipeIngredient
- func UnitLT(v string) predicate.RecipeIngredient
- func UnitLTE(v string) predicate.RecipeIngredient
- func UnitNEQ(v string) predicate.RecipeIngredient
- func UnitNotIn(vs ...string) predicate.RecipeIngredient
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the recipeingredient type in the database. Label = "recipe_ingredient" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldQuantity holds the string denoting the quantity field in the database. FieldQuantity = "quantity" // FieldUnit holds the string denoting the unit field in the database. FieldUnit = "unit" // EdgeIngredient holds the string denoting the ingredient edge name in mutations. EdgeIngredient = "ingredient" // Table holds the table name of the recipeingredient in the database. Table = "recipe_ingredients" // IngredientTable is the table that holds the ingredient relation/edge. IngredientTable = "recipe_ingredients" // IngredientInverseTable is the table name for the Ingredient entity. // It exists in this package in order to avoid circular dependency with the "ingredient" package. IngredientInverseTable = "ingredients" // IngredientColumn is the table column denoting the ingredient relation/edge. IngredientColumn = "ingredient_recipe_ingredients" )
Variables ¶
var Columns = []string{ FieldID, FieldQuantity, FieldUnit, }
Columns holds all SQL columns for recipeingredient fields.
var ForeignKeys = []string{
"ingredient_recipe_ingredients",
"recipe_recipe_ingredients",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "recipe_ingredients" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.RecipeIngredient) predicate.RecipeIngredient
And groups predicates with the AND operator between them.
func HasIngredient ¶
func HasIngredient() predicate.RecipeIngredient
HasIngredient applies the HasEdge predicate on the "ingredient" edge.
func HasIngredientWith ¶
func HasIngredientWith(preds ...predicate.Ingredient) predicate.RecipeIngredient
HasIngredientWith applies the HasEdge predicate on the "ingredient" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.RecipeIngredient
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.RecipeIngredient
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.RecipeIngredient
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.RecipeIngredient
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.RecipeIngredient
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.RecipeIngredient
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.RecipeIngredient
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.RecipeIngredient
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.RecipeIngredient) predicate.RecipeIngredient
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.RecipeIngredient) predicate.RecipeIngredient
Or groups predicates with the OR operator between them.
func Quantity ¶
func Quantity(v float32) predicate.RecipeIngredient
Quantity applies equality check predicate on the "quantity" field. It's identical to QuantityEQ.
func QuantityEQ ¶
func QuantityEQ(v float32) predicate.RecipeIngredient
QuantityEQ applies the EQ predicate on the "quantity" field.
func QuantityGT ¶
func QuantityGT(v float32) predicate.RecipeIngredient
QuantityGT applies the GT predicate on the "quantity" field.
func QuantityGTE ¶
func QuantityGTE(v float32) predicate.RecipeIngredient
QuantityGTE applies the GTE predicate on the "quantity" field.
func QuantityIn ¶
func QuantityIn(vs ...float32) predicate.RecipeIngredient
QuantityIn applies the In predicate on the "quantity" field.
func QuantityLT ¶
func QuantityLT(v float32) predicate.RecipeIngredient
QuantityLT applies the LT predicate on the "quantity" field.
func QuantityLTE ¶
func QuantityLTE(v float32) predicate.RecipeIngredient
QuantityLTE applies the LTE predicate on the "quantity" field.
func QuantityNEQ ¶
func QuantityNEQ(v float32) predicate.RecipeIngredient
QuantityNEQ applies the NEQ predicate on the "quantity" field.
func QuantityNotIn ¶
func QuantityNotIn(vs ...float32) predicate.RecipeIngredient
QuantityNotIn applies the NotIn predicate on the "quantity" field.
func Unit ¶
func Unit(v string) predicate.RecipeIngredient
Unit applies equality check predicate on the "unit" field. It's identical to UnitEQ.
func UnitContains ¶
func UnitContains(v string) predicate.RecipeIngredient
UnitContains applies the Contains predicate on the "unit" field.
func UnitContainsFold ¶
func UnitContainsFold(v string) predicate.RecipeIngredient
UnitContainsFold applies the ContainsFold predicate on the "unit" field.
func UnitEQ ¶
func UnitEQ(v string) predicate.RecipeIngredient
UnitEQ applies the EQ predicate on the "unit" field.
func UnitEqualFold ¶
func UnitEqualFold(v string) predicate.RecipeIngredient
UnitEqualFold applies the EqualFold predicate on the "unit" field.
func UnitGT ¶
func UnitGT(v string) predicate.RecipeIngredient
UnitGT applies the GT predicate on the "unit" field.
func UnitGTE ¶
func UnitGTE(v string) predicate.RecipeIngredient
UnitGTE applies the GTE predicate on the "unit" field.
func UnitHasPrefix ¶
func UnitHasPrefix(v string) predicate.RecipeIngredient
UnitHasPrefix applies the HasPrefix predicate on the "unit" field.
func UnitHasSuffix ¶
func UnitHasSuffix(v string) predicate.RecipeIngredient
UnitHasSuffix applies the HasSuffix predicate on the "unit" field.
func UnitIn ¶
func UnitIn(vs ...string) predicate.RecipeIngredient
UnitIn applies the In predicate on the "unit" field.
func UnitLT ¶
func UnitLT(v string) predicate.RecipeIngredient
UnitLT applies the LT predicate on the "unit" field.
func UnitLTE ¶
func UnitLTE(v string) predicate.RecipeIngredient
UnitLTE applies the LTE predicate on the "unit" field.
func UnitNEQ ¶
func UnitNEQ(v string) predicate.RecipeIngredient
UnitNEQ applies the NEQ predicate on the "unit" field.
func UnitNotIn ¶
func UnitNotIn(vs ...string) predicate.RecipeIngredient
UnitNotIn applies the NotIn predicate on the "unit" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.