Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Step) predicate.Step
- func HasRecipe() predicate.Step
- func HasRecipeWith(preds ...predicate.Recipe) predicate.Step
- func ID(id int) predicate.Step
- func IDEQ(id int) predicate.Step
- func IDGT(id int) predicate.Step
- func IDGTE(id int) predicate.Step
- func IDIn(ids ...int) predicate.Step
- func IDLT(id int) predicate.Step
- func IDLTE(id int) predicate.Step
- func IDNEQ(id int) predicate.Step
- func IDNotIn(ids ...int) predicate.Step
- func Not(p predicate.Step) predicate.Step
- func Or(predicates ...predicate.Step) predicate.Step
- func Text(v string) predicate.Step
- func TextContains(v string) predicate.Step
- func TextContainsFold(v string) predicate.Step
- func TextEQ(v string) predicate.Step
- func TextEqualFold(v string) predicate.Step
- func TextGT(v string) predicate.Step
- func TextGTE(v string) predicate.Step
- func TextHasPrefix(v string) predicate.Step
- func TextHasSuffix(v string) predicate.Step
- func TextIn(vs ...string) predicate.Step
- func TextLT(v string) predicate.Step
- func TextLTE(v string) predicate.Step
- func TextNEQ(v string) predicate.Step
- func TextNotIn(vs ...string) predicate.Step
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the step type in the database. Label = "step" // 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" // EdgeRecipe holds the string denoting the recipe edge name in mutations. EdgeRecipe = "recipe" // Table holds the table name of the step in the database. Table = "steps" // RecipeTable is the table that holds the recipe relation/edge. RecipeTable = "steps" // 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_steps" )
Variables ¶
var Columns = []string{ FieldID, FieldText, }
Columns holds all SQL columns for step fields.
var ForeignKeys = []string{
"recipe_steps",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "steps" table and are not defined as standalone fields in the schema.
Functions ¶
func HasRecipeWith ¶
HasRecipeWith applies the HasEdge predicate on the "recipe" edge with a given conditions (other predicates).
func TextContains ¶
TextContains applies the Contains predicate on the "text" field.
func TextContainsFold ¶
TextContainsFold applies the ContainsFold predicate on the "text" field.
func TextEqualFold ¶
TextEqualFold applies the EqualFold predicate on the "text" field.
func TextHasPrefix ¶
TextHasPrefix applies the HasPrefix predicate on the "text" field.
func TextHasSuffix ¶
TextHasSuffix applies the HasSuffix predicate on the "text" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.