recipe

package
v0.0.0-...-6d1ceae Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const DefaultLocale = LocaleRu

LocaleRu is the default value of the Locale enum.

Variables

View Source
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"}
)
View Source
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
)

Columns holds all SQL columns for recipe fields.

Functions

func And

func And(predicates ...predicate.Recipe) predicate.Recipe

And groups predicates with the AND operator between them.

func CreateTime

func CreateTime(v time.Time) predicate.Recipe

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Recipe

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Recipe

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Recipe

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

func CreateTimeIn(vs ...time.Time) predicate.Recipe

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Recipe

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Recipe

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Recipe

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

func CreateTimeNotIn(vs ...time.Time) predicate.Recipe

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func Description

func Description(v string) predicate.Recipe

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Recipe

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Recipe

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Recipe

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Recipe

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Recipe

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Recipe

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Recipe

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Recipe

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Recipe

DescriptionIn applies the In predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Recipe

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Recipe

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Recipe

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Recipe

DescriptionNotIn applies the NotIn predicate on the "description" field.

func HasEquipment

func HasEquipment() predicate.Recipe

HasEquipment applies the HasEdge predicate on the "equipment" edge.

func HasEquipmentWith

func HasEquipmentWith(preds ...predicate.Equipment) predicate.Recipe

HasEquipmentWith applies the HasEdge predicate on the "equipment" edge with a given conditions (other predicates).

func HasIdeas

func HasIdeas() predicate.Recipe

HasIdeas applies the HasEdge predicate on the "ideas" edge.

func HasIdeasWith

func HasIdeasWith(preds ...predicate.Idea) predicate.Recipe

HasIdeasWith applies the HasEdge predicate on the "ideas" edge with a given conditions (other predicates).

func HasIngredients

func HasIngredients() predicate.Recipe

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

func HasInstructions() predicate.Recipe

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

func HasNutrition() predicate.Recipe

HasNutrition applies the HasEdge predicate on the "nutrition" edge.

func HasNutritionWith

func HasNutritionWith(preds ...predicate.Nutrition) predicate.Recipe

HasNutritionWith applies the HasEdge predicate on the "nutrition" edge with a given conditions (other predicates).

func HasRequiredProducts

func HasRequiredProducts() predicate.Recipe

HasRequiredProducts applies the HasEdge predicate on the "required_products" edge.

func HasRequiredProductsWith

func HasRequiredProductsWith(preds ...predicate.Product) predicate.Recipe

HasRequiredProductsWith applies the HasEdge predicate on the "required_products" edge with a given conditions (other predicates).

func HasSources

func HasSources() predicate.Recipe

HasSources applies the HasEdge predicate on the "sources" edge.

func HasSourcesWith

func HasSourcesWith(preds ...predicate.Source) predicate.Recipe

HasSourcesWith applies the HasEdge predicate on the "sources" edge with a given conditions (other predicates).

func HasTags

func HasTags() predicate.Recipe

HasTags applies the HasEdge predicate on the "tags" edge.

func HasTagsWith

func HasTagsWith(preds ...predicate.Tag) predicate.Recipe

HasTagsWith applies the HasEdge predicate on the "tags" edge with a given conditions (other predicates).

func ID

func ID(id uuid.UUID) predicate.Recipe

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Recipe

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Recipe

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Recipe

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Recipe

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Recipe

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Recipe

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Recipe

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Recipe

IDNotIn applies the NotIn predicate on the ID field.

func LocaleEQ

func LocaleEQ(v Locale) predicate.Recipe

LocaleEQ applies the EQ predicate on the "locale" field.

func LocaleIn

func LocaleIn(vs ...Locale) predicate.Recipe

LocaleIn applies the In predicate on the "locale" field.

func LocaleNEQ

func LocaleNEQ(v Locale) predicate.Recipe

LocaleNEQ applies the NEQ predicate on the "locale" field.

func LocaleNotIn

func LocaleNotIn(vs ...Locale) predicate.Recipe

LocaleNotIn applies the NotIn predicate on the "locale" field.

func LocaleValidator

func LocaleValidator(l Locale) error

LocaleValidator is a validator for the "locale" field enum values. It is called by the builders before save.

func Name

func Name(v string) predicate.Recipe

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Recipe

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Recipe

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Recipe

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Recipe

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Recipe

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Recipe

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Recipe

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Recipe

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Recipe

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Recipe

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Recipe

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Recipe

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Recipe

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Recipe) predicate.Recipe

Or groups predicates with the OR operator between them.

func Published

func Published(v bool) predicate.Recipe

Published applies equality check predicate on the "published" field. It's identical to PublishedEQ.

func PublishedEQ

func PublishedEQ(v bool) predicate.Recipe

PublishedEQ applies the EQ predicate on the "published" field.

func PublishedNEQ

func PublishedNEQ(v bool) predicate.Recipe

PublishedNEQ applies the NEQ predicate on the "published" field.

func Rating

func Rating(v float32) predicate.Recipe

Rating applies equality check predicate on the "rating" field. It's identical to RatingEQ.

func RatingEQ

func RatingEQ(v float32) predicate.Recipe

RatingEQ applies the EQ predicate on the "rating" field.

func RatingGT

func RatingGT(v float32) predicate.Recipe

RatingGT applies the GT predicate on the "rating" field.

func RatingGTE

func RatingGTE(v float32) predicate.Recipe

RatingGTE applies the GTE predicate on the "rating" field.

func RatingIn

func RatingIn(vs ...float32) predicate.Recipe

RatingIn applies the In predicate on the "rating" field.

func RatingIsNil

func RatingIsNil() predicate.Recipe

RatingIsNil applies the IsNil predicate on the "rating" field.

func RatingLT

func RatingLT(v float32) predicate.Recipe

RatingLT applies the LT predicate on the "rating" field.

func RatingLTE

func RatingLTE(v float32) predicate.Recipe

RatingLTE applies the LTE predicate on the "rating" field.

func RatingNEQ

func RatingNEQ(v float32) predicate.Recipe

RatingNEQ applies the NEQ predicate on the "rating" field.

func RatingNotIn

func RatingNotIn(vs ...float32) predicate.Recipe

RatingNotIn applies the NotIn predicate on the "rating" field.

func RatingNotNil

func RatingNotNil() predicate.Recipe

RatingNotNil applies the NotNil predicate on the "rating" field.

func Servings

func Servings(v int) predicate.Recipe

Servings applies equality check predicate on the "servings" field. It's identical to ServingsEQ.

func ServingsEQ

func ServingsEQ(v int) predicate.Recipe

ServingsEQ applies the EQ predicate on the "servings" field.

func ServingsGT

func ServingsGT(v int) predicate.Recipe

ServingsGT applies the GT predicate on the "servings" field.

func ServingsGTE

func ServingsGTE(v int) predicate.Recipe

ServingsGTE applies the GTE predicate on the "servings" field.

func ServingsIn

func ServingsIn(vs ...int) predicate.Recipe

ServingsIn applies the In predicate on the "servings" field.

func ServingsIsNil

func ServingsIsNil() predicate.Recipe

ServingsIsNil applies the IsNil predicate on the "servings" field.

func ServingsLT

func ServingsLT(v int) predicate.Recipe

ServingsLT applies the LT predicate on the "servings" field.

func ServingsLTE

func ServingsLTE(v int) predicate.Recipe

ServingsLTE applies the LTE predicate on the "servings" field.

func ServingsNEQ

func ServingsNEQ(v int) predicate.Recipe

ServingsNEQ applies the NEQ predicate on the "servings" field.

func ServingsNotIn

func ServingsNotIn(vs ...int) predicate.Recipe

ServingsNotIn applies the NotIn predicate on the "servings" field.

func ServingsNotNil

func ServingsNotNil() predicate.Recipe

ServingsNotNil applies the NotNil predicate on the "servings" field.

func Slug

func Slug(v string) predicate.Recipe

Slug applies equality check predicate on the "slug" field. It's identical to SlugEQ.

func SlugContains

func SlugContains(v string) predicate.Recipe

SlugContains applies the Contains predicate on the "slug" field.

func SlugContainsFold

func SlugContainsFold(v string) predicate.Recipe

SlugContainsFold applies the ContainsFold predicate on the "slug" field.

func SlugEQ

func SlugEQ(v string) predicate.Recipe

SlugEQ applies the EQ predicate on the "slug" field.

func SlugEqualFold

func SlugEqualFold(v string) predicate.Recipe

SlugEqualFold applies the EqualFold predicate on the "slug" field.

func SlugGT

func SlugGT(v string) predicate.Recipe

SlugGT applies the GT predicate on the "slug" field.

func SlugGTE

func SlugGTE(v string) predicate.Recipe

SlugGTE applies the GTE predicate on the "slug" field.

func SlugHasPrefix

func SlugHasPrefix(v string) predicate.Recipe

SlugHasPrefix applies the HasPrefix predicate on the "slug" field.

func SlugHasSuffix

func SlugHasSuffix(v string) predicate.Recipe

SlugHasSuffix applies the HasSuffix predicate on the "slug" field.

func SlugIn

func SlugIn(vs ...string) predicate.Recipe

SlugIn applies the In predicate on the "slug" field.

func SlugLT

func SlugLT(v string) predicate.Recipe

SlugLT applies the LT predicate on the "slug" field.

func SlugLTE

func SlugLTE(v string) predicate.Recipe

SlugLTE applies the LTE predicate on the "slug" field.

func SlugNEQ

func SlugNEQ(v string) predicate.Recipe

SlugNEQ applies the NEQ predicate on the "slug" field.

func SlugNotIn

func SlugNotIn(vs ...string) predicate.Recipe

SlugNotIn applies the NotIn predicate on the "slug" field.

func Text

func Text(v string) predicate.Recipe

Text applies equality check predicate on the "text" field. It's identical to TextEQ.

func TextContains

func TextContains(v string) predicate.Recipe

TextContains applies the Contains predicate on the "text" field.

func TextContainsFold

func TextContainsFold(v string) predicate.Recipe

TextContainsFold applies the ContainsFold predicate on the "text" field.

func TextEQ

func TextEQ(v string) predicate.Recipe

TextEQ applies the EQ predicate on the "text" field.

func TextEqualFold

func TextEqualFold(v string) predicate.Recipe

TextEqualFold applies the EqualFold predicate on the "text" field.

func TextGT

func TextGT(v string) predicate.Recipe

TextGT applies the GT predicate on the "text" field.

func TextGTE

func TextGTE(v string) predicate.Recipe

TextGTE applies the GTE predicate on the "text" field.

func TextHasPrefix

func TextHasPrefix(v string) predicate.Recipe

TextHasPrefix applies the HasPrefix predicate on the "text" field.

func TextHasSuffix

func TextHasSuffix(v string) predicate.Recipe

TextHasSuffix applies the HasSuffix predicate on the "text" field.

func TextIn

func TextIn(vs ...string) predicate.Recipe

TextIn applies the In predicate on the "text" field.

func TextLT

func TextLT(v string) predicate.Recipe

TextLT applies the LT predicate on the "text" field.

func TextLTE

func TextLTE(v string) predicate.Recipe

TextLTE applies the LTE predicate on the "text" field.

func TextNEQ

func TextNEQ(v string) predicate.Recipe

TextNEQ applies the NEQ predicate on the "text" field.

func TextNotIn

func TextNotIn(vs ...string) predicate.Recipe

TextNotIn applies the NotIn predicate on the "text" field.

func Time

func Time(v time.Duration) predicate.Recipe

Time applies equality check predicate on the "time" field. It's identical to TimeEQ.

func TimeEQ

func TimeEQ(v time.Duration) predicate.Recipe

TimeEQ applies the EQ predicate on the "time" field.

func TimeGT

func TimeGT(v time.Duration) predicate.Recipe

TimeGT applies the GT predicate on the "time" field.

func TimeGTE

func TimeGTE(v time.Duration) predicate.Recipe

TimeGTE applies the GTE predicate on the "time" field.

func TimeIn

func TimeIn(vs ...time.Duration) predicate.Recipe

TimeIn applies the In predicate on the "time" field.

func TimeIsNil

func TimeIsNil() predicate.Recipe

TimeIsNil applies the IsNil predicate on the "time" field.

func TimeLT

func TimeLT(v time.Duration) predicate.Recipe

TimeLT applies the LT predicate on the "time" field.

func TimeLTE

func TimeLTE(v time.Duration) predicate.Recipe

TimeLTE applies the LTE predicate on the "time" field.

func TimeNEQ

func TimeNEQ(v time.Duration) predicate.Recipe

TimeNEQ applies the NEQ predicate on the "time" field.

func TimeNotIn

func TimeNotIn(vs ...time.Duration) predicate.Recipe

TimeNotIn applies the NotIn predicate on the "time" field.

func TimeNotNil

func TimeNotNil() predicate.Recipe

TimeNotNil applies the NotNil predicate on the "time" field.

func UpdateTime

func UpdateTime(v time.Time) predicate.Recipe

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Recipe

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Recipe

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Recipe

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn

func UpdateTimeIn(vs ...time.Time) predicate.Recipe

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Recipe

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Recipe

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Recipe

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn

func UpdateTimeNotIn(vs ...time.Time) predicate.Recipe

UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type Locale

type Locale string

Locale defines the type for the "locale" enum field.

const (
	LocaleEn Locale = "en"
	LocaleRu Locale = "ru"
)

Locale values.

func (Locale) String

func (l Locale) String() string

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL