Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Instruction) predicate.Instruction
- func HasRecipe() predicate.Instruction
- func HasRecipeWith(preds ...predicate.Recipe) predicate.Instruction
- func ID(id uuid.UUID) predicate.Instruction
- func IDEQ(id uuid.UUID) predicate.Instruction
- func IDGT(id uuid.UUID) predicate.Instruction
- func IDGTE(id uuid.UUID) predicate.Instruction
- func IDIn(ids ...uuid.UUID) predicate.Instruction
- func IDLT(id uuid.UUID) predicate.Instruction
- func IDLTE(id uuid.UUID) predicate.Instruction
- func IDNEQ(id uuid.UUID) predicate.Instruction
- func IDNotIn(ids ...uuid.UUID) predicate.Instruction
- func Not(p predicate.Instruction) predicate.Instruction
- func Or(predicates ...predicate.Instruction) predicate.Instruction
- func Order(v int) predicate.Instruction
- func OrderEQ(v int) predicate.Instruction
- func OrderGT(v int) predicate.Instruction
- func OrderGTE(v int) predicate.Instruction
- func OrderIn(vs ...int) predicate.Instruction
- func OrderLT(v int) predicate.Instruction
- func OrderLTE(v int) predicate.Instruction
- func OrderNEQ(v int) predicate.Instruction
- func OrderNotIn(vs ...int) predicate.Instruction
- func Text(v string) predicate.Instruction
- func TextContains(v string) predicate.Instruction
- func TextContainsFold(v string) predicate.Instruction
- func TextEQ(v string) predicate.Instruction
- func TextEqualFold(v string) predicate.Instruction
- func TextGT(v string) predicate.Instruction
- func TextGTE(v string) predicate.Instruction
- func TextHasPrefix(v string) predicate.Instruction
- func TextHasSuffix(v string) predicate.Instruction
- func TextIn(vs ...string) predicate.Instruction
- func TextLT(v string) predicate.Instruction
- func TextLTE(v string) predicate.Instruction
- func TextNEQ(v string) predicate.Instruction
- func TextNotIn(vs ...string) predicate.Instruction
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the instruction type in the database. Label = "instruction" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldText holds the string denoting the text field in the database. FieldText = "text" // FieldOrder holds the string denoting the order field in the database. FieldOrder = "order" // EdgeRecipe holds the string denoting the recipe edge name in mutations. EdgeRecipe = "recipe" // Table holds the table name of the instruction in the database. Table = "instructions" // RecipeTable is the table that holds the recipe relation/edge. RecipeTable = "instructions" // RecipeInverseTable is the table name for the Recipe entity. // It exists in this package in order to avoid circular dependency with the "recipe" package. RecipeInverseTable = "recipes" // RecipeColumn is the table column denoting the recipe relation/edge. RecipeColumn = "recipe_instructions" )
Variables ¶
var ( // OrderValidator is a validator for the "order" field. It is called by the builders before save. OrderValidator func(int) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldText, FieldOrder, }
Columns holds all SQL columns for instruction fields.
var ForeignKeys = []string{
"recipe_instructions",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "instructions" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.Instruction) predicate.Instruction
And groups predicates with the AND operator between them.
func HasRecipe ¶
func HasRecipe() predicate.Instruction
HasRecipe applies the HasEdge predicate on the "recipe" edge.
func HasRecipeWith ¶
func HasRecipeWith(preds ...predicate.Recipe) predicate.Instruction
HasRecipeWith applies the HasEdge predicate on the "recipe" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.Instruction
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.Instruction
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.Instruction
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.Instruction
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.Instruction
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.Instruction
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.Instruction
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.Instruction
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.Instruction) predicate.Instruction
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Instruction) predicate.Instruction
Or groups predicates with the OR operator between them.
func Order ¶
func Order(v int) predicate.Instruction
Order applies equality check predicate on the "order" field. It's identical to OrderEQ.
func OrderEQ ¶
func OrderEQ(v int) predicate.Instruction
OrderEQ applies the EQ predicate on the "order" field.
func OrderGT ¶
func OrderGT(v int) predicate.Instruction
OrderGT applies the GT predicate on the "order" field.
func OrderGTE ¶
func OrderGTE(v int) predicate.Instruction
OrderGTE applies the GTE predicate on the "order" field.
func OrderIn ¶
func OrderIn(vs ...int) predicate.Instruction
OrderIn applies the In predicate on the "order" field.
func OrderLT ¶
func OrderLT(v int) predicate.Instruction
OrderLT applies the LT predicate on the "order" field.
func OrderLTE ¶
func OrderLTE(v int) predicate.Instruction
OrderLTE applies the LTE predicate on the "order" field.
func OrderNEQ ¶
func OrderNEQ(v int) predicate.Instruction
OrderNEQ applies the NEQ predicate on the "order" field.
func OrderNotIn ¶
func OrderNotIn(vs ...int) predicate.Instruction
OrderNotIn applies the NotIn predicate on the "order" field.
func Text ¶
func Text(v string) predicate.Instruction
Text applies equality check predicate on the "text" field. It's identical to TextEQ.
func TextContains ¶
func TextContains(v string) predicate.Instruction
TextContains applies the Contains predicate on the "text" field.
func TextContainsFold ¶
func TextContainsFold(v string) predicate.Instruction
TextContainsFold applies the ContainsFold predicate on the "text" field.
func TextEQ ¶
func TextEQ(v string) predicate.Instruction
TextEQ applies the EQ predicate on the "text" field.
func TextEqualFold ¶
func TextEqualFold(v string) predicate.Instruction
TextEqualFold applies the EqualFold predicate on the "text" field.
func TextGT ¶
func TextGT(v string) predicate.Instruction
TextGT applies the GT predicate on the "text" field.
func TextGTE ¶
func TextGTE(v string) predicate.Instruction
TextGTE applies the GTE predicate on the "text" field.
func TextHasPrefix ¶
func TextHasPrefix(v string) predicate.Instruction
TextHasPrefix applies the HasPrefix predicate on the "text" field.
func TextHasSuffix ¶
func TextHasSuffix(v string) predicate.Instruction
TextHasSuffix applies the HasSuffix predicate on the "text" field.
func TextIn ¶
func TextIn(vs ...string) predicate.Instruction
TextIn applies the In predicate on the "text" field.
func TextLT ¶
func TextLT(v string) predicate.Instruction
TextLT applies the LT predicate on the "text" field.
func TextLTE ¶
func TextLTE(v string) predicate.Instruction
TextLTE applies the LTE predicate on the "text" field.
func TextNEQ ¶
func TextNEQ(v string) predicate.Instruction
TextNEQ applies the NEQ predicate on the "text" field.
func TextNotIn ¶
func TextNotIn(vs ...string) predicate.Instruction
TextNotIn applies the NotIn predicate on the "text" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Instruction queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByOrder ¶
func ByOrder(opts ...sql.OrderTermOption) OrderOption
ByOrder orders the results by the order field.
func ByRecipeField ¶
func ByRecipeField(field string, opts ...sql.OrderTermOption) OrderOption
ByRecipeField orders the results by recipe field.
func ByText ¶
func ByText(opts ...sql.OrderTermOption) OrderOption
ByText orders the results by the text field.