Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Recipe) predicate.Recipe
- func CreateTime(v time.Time) predicate.Recipe
- func CreateTimeEQ(v time.Time) predicate.Recipe
- func CreateTimeGT(v time.Time) predicate.Recipe
- func CreateTimeGTE(v time.Time) predicate.Recipe
- func CreateTimeIn(vs ...time.Time) predicate.Recipe
- func CreateTimeLT(v time.Time) predicate.Recipe
- func CreateTimeLTE(v time.Time) predicate.Recipe
- func CreateTimeNEQ(v time.Time) predicate.Recipe
- func CreateTimeNotIn(vs ...time.Time) predicate.Recipe
- func Description(v string) predicate.Recipe
- func DescriptionContains(v string) predicate.Recipe
- func DescriptionContainsFold(v string) predicate.Recipe
- func DescriptionEQ(v string) predicate.Recipe
- func DescriptionEqualFold(v string) predicate.Recipe
- func DescriptionGT(v string) predicate.Recipe
- func DescriptionGTE(v string) predicate.Recipe
- func DescriptionHasPrefix(v string) predicate.Recipe
- func DescriptionHasSuffix(v string) predicate.Recipe
- func DescriptionIn(vs ...string) predicate.Recipe
- func DescriptionLT(v string) predicate.Recipe
- func DescriptionLTE(v string) predicate.Recipe
- func DescriptionNEQ(v string) predicate.Recipe
- func DescriptionNotIn(vs ...string) predicate.Recipe
- func HasEquipment() predicate.Recipe
- func HasEquipmentWith(preds ...predicate.Equipment) predicate.Recipe
- func HasIdeas() predicate.Recipe
- func HasIdeasWith(preds ...predicate.Idea) predicate.Recipe
- func HasIngredients() predicate.Recipe
- func HasIngredientsWith(preds ...predicate.Ingredient) predicate.Recipe
- func HasInstructions() predicate.Recipe
- func HasInstructionsWith(preds ...predicate.Instruction) predicate.Recipe
- func HasNutrition() predicate.Recipe
- func HasNutritionWith(preds ...predicate.Nutrition) predicate.Recipe
- func HasRequiredProducts() predicate.Recipe
- func HasRequiredProductsWith(preds ...predicate.Product) predicate.Recipe
- func HasSources() predicate.Recipe
- func HasSourcesWith(preds ...predicate.Source) predicate.Recipe
- func HasTags() predicate.Recipe
- func HasTagsWith(preds ...predicate.Tag) predicate.Recipe
- func ID(id uuid.UUID) predicate.Recipe
- func IDEQ(id uuid.UUID) predicate.Recipe
- func IDGT(id uuid.UUID) predicate.Recipe
- func IDGTE(id uuid.UUID) predicate.Recipe
- func IDIn(ids ...uuid.UUID) predicate.Recipe
- func IDLT(id uuid.UUID) predicate.Recipe
- func IDLTE(id uuid.UUID) predicate.Recipe
- func IDNEQ(id uuid.UUID) predicate.Recipe
- func IDNotIn(ids ...uuid.UUID) predicate.Recipe
- func LocaleEQ(v Locale) predicate.Recipe
- func LocaleIn(vs ...Locale) predicate.Recipe
- func LocaleNEQ(v Locale) predicate.Recipe
- func LocaleNotIn(vs ...Locale) predicate.Recipe
- func LocaleValidator(l Locale) error
- func Name(v string) predicate.Recipe
- func NameContains(v string) predicate.Recipe
- func NameContainsFold(v string) predicate.Recipe
- func NameEQ(v string) predicate.Recipe
- func NameEqualFold(v string) predicate.Recipe
- func NameGT(v string) predicate.Recipe
- func NameGTE(v string) predicate.Recipe
- func NameHasPrefix(v string) predicate.Recipe
- func NameHasSuffix(v string) predicate.Recipe
- func NameIn(vs ...string) predicate.Recipe
- func NameLT(v string) predicate.Recipe
- func NameLTE(v string) predicate.Recipe
- func NameNEQ(v string) predicate.Recipe
- func NameNotIn(vs ...string) predicate.Recipe
- func Not(p predicate.Recipe) predicate.Recipe
- func Or(predicates ...predicate.Recipe) predicate.Recipe
- func Published(v bool) predicate.Recipe
- func PublishedEQ(v bool) predicate.Recipe
- func PublishedNEQ(v bool) predicate.Recipe
- func Rating(v float32) predicate.Recipe
- func RatingEQ(v float32) predicate.Recipe
- func RatingGT(v float32) predicate.Recipe
- func RatingGTE(v float32) predicate.Recipe
- func RatingIn(vs ...float32) predicate.Recipe
- func RatingIsNil() predicate.Recipe
- func RatingLT(v float32) predicate.Recipe
- func RatingLTE(v float32) predicate.Recipe
- func RatingNEQ(v float32) predicate.Recipe
- func RatingNotIn(vs ...float32) predicate.Recipe
- func RatingNotNil() predicate.Recipe
- func Servings(v int) predicate.Recipe
- func ServingsEQ(v int) predicate.Recipe
- func ServingsGT(v int) predicate.Recipe
- func ServingsGTE(v int) predicate.Recipe
- func ServingsIn(vs ...int) predicate.Recipe
- func ServingsIsNil() predicate.Recipe
- func ServingsLT(v int) predicate.Recipe
- func ServingsLTE(v int) predicate.Recipe
- func ServingsNEQ(v int) predicate.Recipe
- func ServingsNotIn(vs ...int) predicate.Recipe
- func ServingsNotNil() predicate.Recipe
- func Slug(v string) predicate.Recipe
- func SlugContains(v string) predicate.Recipe
- func SlugContainsFold(v string) predicate.Recipe
- func SlugEQ(v string) predicate.Recipe
- func SlugEqualFold(v string) predicate.Recipe
- func SlugGT(v string) predicate.Recipe
- func SlugGTE(v string) predicate.Recipe
- func SlugHasPrefix(v string) predicate.Recipe
- func SlugHasSuffix(v string) predicate.Recipe
- func SlugIn(vs ...string) predicate.Recipe
- func SlugLT(v string) predicate.Recipe
- func SlugLTE(v string) predicate.Recipe
- func SlugNEQ(v string) predicate.Recipe
- func SlugNotIn(vs ...string) predicate.Recipe
- func Text(v string) predicate.Recipe
- func TextContains(v string) predicate.Recipe
- func TextContainsFold(v string) predicate.Recipe
- func TextEQ(v string) predicate.Recipe
- func TextEqualFold(v string) predicate.Recipe
- func TextGT(v string) predicate.Recipe
- func TextGTE(v string) predicate.Recipe
- func TextHasPrefix(v string) predicate.Recipe
- func TextHasSuffix(v string) predicate.Recipe
- func TextIn(vs ...string) predicate.Recipe
- func TextLT(v string) predicate.Recipe
- func TextLTE(v string) predicate.Recipe
- func TextNEQ(v string) predicate.Recipe
- func TextNotIn(vs ...string) predicate.Recipe
- func Time(v time.Duration) predicate.Recipe
- func TimeEQ(v time.Duration) predicate.Recipe
- func TimeGT(v time.Duration) predicate.Recipe
- func TimeGTE(v time.Duration) predicate.Recipe
- func TimeIn(vs ...time.Duration) predicate.Recipe
- func TimeIsNil() predicate.Recipe
- func TimeLT(v time.Duration) predicate.Recipe
- func TimeLTE(v time.Duration) predicate.Recipe
- func TimeNEQ(v time.Duration) predicate.Recipe
- func TimeNotIn(vs ...time.Duration) predicate.Recipe
- func TimeNotNil() predicate.Recipe
- func UpdateTime(v time.Time) predicate.Recipe
- func UpdateTimeEQ(v time.Time) predicate.Recipe
- func UpdateTimeGT(v time.Time) predicate.Recipe
- func UpdateTimeGTE(v time.Time) predicate.Recipe
- func UpdateTimeIn(vs ...time.Time) predicate.Recipe
- func UpdateTimeLT(v time.Time) predicate.Recipe
- func UpdateTimeLTE(v time.Time) predicate.Recipe
- func UpdateTimeNEQ(v time.Time) predicate.Recipe
- func UpdateTimeNotIn(vs ...time.Time) predicate.Recipe
- func ValidColumn(column string) bool
- type Locale
- type OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByEquipment(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByEquipmentCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIdeas(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByIdeasCount(opts ...sql.OrderTermOption) OrderOption
- func ByIngredients(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByIngredientsCount(opts ...sql.OrderTermOption) OrderOption
- func ByInstructions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByInstructionsCount(opts ...sql.OrderTermOption) OrderOption
- func ByLocale(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByNutritionField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPublished(opts ...sql.OrderTermOption) OrderOption
- func ByRating(opts ...sql.OrderTermOption) OrderOption
- func ByRequiredProducts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByRequiredProductsCount(opts ...sql.OrderTermOption) OrderOption
- func ByServings(opts ...sql.OrderTermOption) OrderOption
- func BySlug(opts ...sql.OrderTermOption) OrderOption
- func BySources(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySourcesCount(opts ...sql.OrderTermOption) OrderOption
- func ByTags(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTagsCount(opts ...sql.OrderTermOption) OrderOption
- func ByText(opts ...sql.OrderTermOption) OrderOption
- func ByTime(opts ...sql.OrderTermOption) OrderOption
- func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the recipe type in the database. Label = "recipe" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldLocale holds the string denoting the locale field in the database. FieldLocale = "locale" // 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" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldText holds the string denoting the text field in the database. FieldText = "text" // FieldRating holds the string denoting the rating field in the database. FieldRating = "rating" // FieldServings holds the string denoting the servings field in the database. FieldServings = "servings" // FieldTime holds the string denoting the time field in the database. FieldTime = "time" // FieldPublished holds the string denoting the published field in the database. FieldPublished = "published" // EdgeRequiredProducts holds the string denoting the required_products edge name in mutations. EdgeRequiredProducts = "required_products" // EdgeInstructions holds the string denoting the instructions edge name in mutations. EdgeInstructions = "instructions" // EdgeTags holds the string denoting the tags edge name in mutations. EdgeTags = "tags" // EdgeEquipment holds the string denoting the equipment edge name in mutations. EdgeEquipment = "equipment" // EdgeIdeas holds the string denoting the ideas edge name in mutations. EdgeIdeas = "ideas" // EdgeSources holds the string denoting the sources edge name in mutations. EdgeSources = "sources" // EdgeNutrition holds the string denoting the nutrition edge name in mutations. EdgeNutrition = "nutrition" // EdgeIngredients holds the string denoting the ingredients edge name in mutations. EdgeIngredients = "ingredients" // Table holds the table name of the recipe in the database. Table = "recipes" // RequiredProductsTable is the table that holds the required_products relation/edge. The primary key declared below. RequiredProductsTable = "ingredients" // RequiredProductsInverseTable is the table name for the Product entity. // It exists in this package in order to avoid circular dependency with the "product" package. RequiredProductsInverseTable = "products" // InstructionsTable is the table that holds the instructions relation/edge. InstructionsTable = "instructions" // InstructionsInverseTable is the table name for the Instruction entity. // It exists in this package in order to avoid circular dependency with the "instruction" package. InstructionsInverseTable = "instructions" // InstructionsColumn is the table column denoting the instructions relation/edge. InstructionsColumn = "recipe_instructions" // TagsTable is the table that holds the tags relation/edge. The primary key declared below. TagsTable = "recipe_tags" // TagsInverseTable is the table name for the Tag entity. // It exists in this package in order to avoid circular dependency with the "tag" package. TagsInverseTable = "tags" // EquipmentTable is the table that holds the equipment relation/edge. The primary key declared below. EquipmentTable = "recipe_equipment" // EquipmentInverseTable is the table name for the Equipment entity. // It exists in this package in order to avoid circular dependency with the "equipment" package. EquipmentInverseTable = "equipment" // IdeasTable is the table that holds the ideas relation/edge. IdeasTable = "ideas" // IdeasInverseTable is the table name for the Idea entity. // It exists in this package in order to avoid circular dependency with the "idea" package. IdeasInverseTable = "ideas" // IdeasColumn is the table column denoting the ideas relation/edge. IdeasColumn = "recipe_ideas" // SourcesTable is the table that holds the sources relation/edge. SourcesTable = "sources" // SourcesInverseTable is the table name for the Source entity. // It exists in this package in order to avoid circular dependency with the "source" package. SourcesInverseTable = "sources" // SourcesColumn is the table column denoting the sources relation/edge. SourcesColumn = "recipe_sources" // NutritionTable is the table that holds the nutrition relation/edge. NutritionTable = "nutritions" // NutritionInverseTable is the table name for the Nutrition entity. // It exists in this package in order to avoid circular dependency with the "nutrition" package. NutritionInverseTable = "nutritions" // NutritionColumn is the table column denoting the nutrition relation/edge. NutritionColumn = "recipe_nutrition" // IngredientsTable is the table that holds the ingredients relation/edge. IngredientsTable = "ingredients" // IngredientsInverseTable is the table name for the Ingredient entity. // It exists in this package in order to avoid circular dependency with the "ingredient" package. IngredientsInverseTable = "ingredients" // IngredientsColumn is the table column denoting the ingredients relation/edge. IngredientsColumn = "recipe_id" )
const DefaultLocale = LocaleRu
LocaleRu is the default value of the Locale enum.
Variables ¶
var ( // RequiredProductsPrimaryKey and RequiredProductsColumn2 are the table columns denoting the // primary key for the required_products relation (M2M). RequiredProductsPrimaryKey = []string{"recipe_id", "product_id"} // TagsPrimaryKey and TagsColumn2 are the table columns denoting the // primary key for the tags relation (M2M). TagsPrimaryKey = []string{"recipe_id", "tag_id"} // EquipmentPrimaryKey and EquipmentColumn2 are the table columns denoting the // primary key for the equipment relation (M2M). EquipmentPrimaryKey = []string{"recipe_id", "equipment_id"} )
var ( // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time // 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 // RatingValidator is a validator for the "rating" field. It is called by the builders before save. RatingValidator func(float32) error // ServingsValidator is a validator for the "servings" field. It is called by the builders before save. ServingsValidator func(int) error // DefaultPublished holds the default value on creation for the "published" field. DefaultPublished bool // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldLocale, FieldName, FieldSlug, FieldDescription, FieldText, FieldRating, FieldServings, FieldTime, FieldPublished, }
Columns holds all SQL columns for recipe fields.
Functions ¶
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func HasEquipment ¶
HasEquipment applies the HasEdge predicate on the "equipment" edge.
func HasEquipmentWith ¶
HasEquipmentWith applies the HasEdge predicate on the "equipment" edge with a given conditions (other predicates).
func HasIdeasWith ¶
HasIdeasWith applies the HasEdge predicate on the "ideas" edge with a given conditions (other predicates).
func HasIngredients ¶
HasIngredients applies the HasEdge predicate on the "ingredients" edge.
func HasIngredientsWith ¶
func HasIngredientsWith(preds ...predicate.Ingredient) predicate.Recipe
HasIngredientsWith applies the HasEdge predicate on the "ingredients" edge with a given conditions (other predicates).
func HasInstructions ¶
HasInstructions applies the HasEdge predicate on the "instructions" edge.
func HasInstructionsWith ¶
func HasInstructionsWith(preds ...predicate.Instruction) predicate.Recipe
HasInstructionsWith applies the HasEdge predicate on the "instructions" edge with a given conditions (other predicates).
func HasNutrition ¶
HasNutrition applies the HasEdge predicate on the "nutrition" edge.
func HasNutritionWith ¶
HasNutritionWith applies the HasEdge predicate on the "nutrition" edge with a given conditions (other predicates).
func HasRequiredProducts ¶
HasRequiredProducts applies the HasEdge predicate on the "required_products" edge.
func HasRequiredProductsWith ¶
HasRequiredProductsWith applies the HasEdge predicate on the "required_products" edge with a given conditions (other predicates).
func HasSources ¶
HasSources applies the HasEdge predicate on the "sources" edge.
func HasSourcesWith ¶
HasSourcesWith applies the HasEdge predicate on the "sources" edge with a given conditions (other predicates).
func HasTagsWith ¶
HasTagsWith applies the HasEdge predicate on the "tags" edge with a given conditions (other predicates).
func LocaleNotIn ¶
LocaleNotIn applies the NotIn predicate on the "locale" field.
func LocaleValidator ¶
LocaleValidator is a validator for the "locale" field enum values. It is called by the builders before save.
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 Published ¶
Published applies equality check predicate on the "published" field. It's identical to PublishedEQ.
func PublishedEQ ¶
PublishedEQ applies the EQ predicate on the "published" field.
func PublishedNEQ ¶
PublishedNEQ applies the NEQ predicate on the "published" field.
func Rating ¶
Rating applies equality check predicate on the "rating" field. It's identical to RatingEQ.
func RatingIsNil ¶
RatingIsNil applies the IsNil predicate on the "rating" field.
func RatingNotIn ¶
RatingNotIn applies the NotIn predicate on the "rating" field.
func RatingNotNil ¶
RatingNotNil applies the NotNil predicate on the "rating" field.
func Servings ¶
Servings applies equality check predicate on the "servings" field. It's identical to ServingsEQ.
func ServingsEQ ¶
ServingsEQ applies the EQ predicate on the "servings" field.
func ServingsGT ¶
ServingsGT applies the GT predicate on the "servings" field.
func ServingsGTE ¶
ServingsGTE applies the GTE predicate on the "servings" field.
func ServingsIn ¶
ServingsIn applies the In predicate on the "servings" field.
func ServingsIsNil ¶
ServingsIsNil applies the IsNil predicate on the "servings" field.
func ServingsLT ¶
ServingsLT applies the LT predicate on the "servings" field.
func ServingsLTE ¶
ServingsLTE applies the LTE predicate on the "servings" field.
func ServingsNEQ ¶
ServingsNEQ applies the NEQ predicate on the "servings" field.
func ServingsNotIn ¶
ServingsNotIn applies the NotIn predicate on the "servings" field.
func ServingsNotNil ¶
ServingsNotNil applies the NotNil predicate on the "servings" 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 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 TimeNotNil ¶
TimeNotNil applies the NotNil predicate on the "time" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" 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 Recipe queries.
func ByCreateTime ¶
func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
ByCreateTime orders the results by the create_time field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByEquipment ¶
func ByEquipment(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByEquipment orders the results by equipment terms.
func ByEquipmentCount ¶
func ByEquipmentCount(opts ...sql.OrderTermOption) OrderOption
ByEquipmentCount orders the results by equipment count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIdeas ¶
func ByIdeas(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByIdeas orders the results by ideas terms.
func ByIdeasCount ¶
func ByIdeasCount(opts ...sql.OrderTermOption) OrderOption
ByIdeasCount orders the results by ideas count.
func ByIngredients ¶
func ByIngredients(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByIngredients orders the results by ingredients terms.
func ByIngredientsCount ¶
func ByIngredientsCount(opts ...sql.OrderTermOption) OrderOption
ByIngredientsCount orders the results by ingredients count.
func ByInstructions ¶
func ByInstructions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByInstructions orders the results by instructions terms.
func ByInstructionsCount ¶
func ByInstructionsCount(opts ...sql.OrderTermOption) OrderOption
ByInstructionsCount orders the results by instructions count.
func ByLocale ¶
func ByLocale(opts ...sql.OrderTermOption) OrderOption
ByLocale orders the results by the locale field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByNutritionField ¶
func ByNutritionField(field string, opts ...sql.OrderTermOption) OrderOption
ByNutritionField orders the results by nutrition field.
func ByPublished ¶
func ByPublished(opts ...sql.OrderTermOption) OrderOption
ByPublished orders the results by the published field.
func ByRating ¶
func ByRating(opts ...sql.OrderTermOption) OrderOption
ByRating orders the results by the rating field.
func ByRequiredProducts ¶
func ByRequiredProducts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByRequiredProducts orders the results by required_products terms.
func ByRequiredProductsCount ¶
func ByRequiredProductsCount(opts ...sql.OrderTermOption) OrderOption
ByRequiredProductsCount orders the results by required_products count.
func ByServings ¶
func ByServings(opts ...sql.OrderTermOption) OrderOption
ByServings orders the results by the servings field.
func BySlug ¶
func BySlug(opts ...sql.OrderTermOption) OrderOption
BySlug orders the results by the slug field.
func BySources ¶
func BySources(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
BySources orders the results by sources terms.
func BySourcesCount ¶
func BySourcesCount(opts ...sql.OrderTermOption) OrderOption
BySourcesCount orders the results by sources count.
func ByTags ¶
func ByTags(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTags orders the results by tags terms.
func ByTagsCount ¶
func ByTagsCount(opts ...sql.OrderTermOption) OrderOption
ByTagsCount orders the results by tags count.
func ByText ¶
func ByText(opts ...sql.OrderTermOption) OrderOption
ByText orders the results by the text field.
func ByTime ¶
func ByTime(opts ...sql.OrderTermOption) OrderOption
ByTime orders the results by the time field.
func ByUpdateTime ¶
func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
ByUpdateTime orders the results by the update_time field.