Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Equipment) predicate.Equipment
- func HasRecipes() predicate.Equipment
- func HasRecipesWith(preds ...predicate.Recipe) predicate.Equipment
- func ID(id uuid.UUID) predicate.Equipment
- func IDEQ(id uuid.UUID) predicate.Equipment
- func IDGT(id uuid.UUID) predicate.Equipment
- func IDGTE(id uuid.UUID) predicate.Equipment
- func IDIn(ids ...uuid.UUID) predicate.Equipment
- func IDLT(id uuid.UUID) predicate.Equipment
- func IDLTE(id uuid.UUID) predicate.Equipment
- func IDNEQ(id uuid.UUID) predicate.Equipment
- func IDNotIn(ids ...uuid.UUID) predicate.Equipment
- func Name(v string) predicate.Equipment
- func NameContains(v string) predicate.Equipment
- func NameContainsFold(v string) predicate.Equipment
- func NameEQ(v string) predicate.Equipment
- func NameEqualFold(v string) predicate.Equipment
- func NameGT(v string) predicate.Equipment
- func NameGTE(v string) predicate.Equipment
- func NameHasPrefix(v string) predicate.Equipment
- func NameHasSuffix(v string) predicate.Equipment
- func NameIn(vs ...string) predicate.Equipment
- func NameLT(v string) predicate.Equipment
- func NameLTE(v string) predicate.Equipment
- func NameNEQ(v string) predicate.Equipment
- func NameNotIn(vs ...string) predicate.Equipment
- func Not(p predicate.Equipment) predicate.Equipment
- func Or(predicates ...predicate.Equipment) predicate.Equipment
- func Slug(v string) predicate.Equipment
- func SlugContains(v string) predicate.Equipment
- func SlugContainsFold(v string) predicate.Equipment
- func SlugEQ(v string) predicate.Equipment
- func SlugEqualFold(v string) predicate.Equipment
- func SlugGT(v string) predicate.Equipment
- func SlugGTE(v string) predicate.Equipment
- func SlugHasPrefix(v string) predicate.Equipment
- func SlugHasSuffix(v string) predicate.Equipment
- func SlugIn(vs ...string) predicate.Equipment
- func SlugLT(v string) predicate.Equipment
- func SlugLTE(v string) predicate.Equipment
- func SlugNEQ(v string) predicate.Equipment
- func SlugNotIn(vs ...string) predicate.Equipment
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the equipment type in the database. Label = "equipment" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldSlug holds the string denoting the slug field in the database. FieldSlug = "slug" // EdgeRecipes holds the string denoting the recipes edge name in mutations. EdgeRecipes = "recipes" // Table holds the table name of the equipment in the database. Table = "equipment" // RecipesTable is the table that holds the recipes relation/edge. The primary key declared below. RecipesTable = "recipe_equipment" // RecipesInverseTable is the table name for the Recipe entity. // It exists in this package in order to avoid circular dependency with the "recipe" package. RecipesInverseTable = "recipes" )
Variables ¶
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // SlugValidator is a validator for the "slug" field. It is called by the builders before save. SlugValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldName, FieldSlug, }
Columns holds all SQL columns for equipment fields.
var ( // RecipesPrimaryKey and RecipesColumn2 are the table columns denoting the // primary key for the recipes relation (M2M). RecipesPrimaryKey = []string{"recipe_id", "equipment_id"} )
Functions ¶
func HasRecipes ¶
HasRecipes applies the HasEdge predicate on the "recipes" edge.
func HasRecipesWith ¶
HasRecipesWith applies the HasEdge predicate on the "recipes" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func SlugContains ¶
SlugContains applies the Contains predicate on the "slug" field.
func SlugContainsFold ¶
SlugContainsFold applies the ContainsFold predicate on the "slug" field.
func SlugEqualFold ¶
SlugEqualFold applies the EqualFold predicate on the "slug" field.
func SlugHasPrefix ¶
SlugHasPrefix applies the HasPrefix predicate on the "slug" field.
func SlugHasSuffix ¶
SlugHasSuffix applies the HasSuffix predicate on the "slug" 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 Equipment queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByRecipes ¶
func ByRecipes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByRecipes orders the results by recipes terms.
func ByRecipesCount ¶
func ByRecipesCount(opts ...sql.OrderTermOption) OrderOption
ByRecipesCount orders the results by recipes count.
func BySlug ¶
func BySlug(opts ...sql.OrderTermOption) OrderOption
BySlug orders the results by the slug field.