ingredient

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: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the ingredient type in the database.
	Label = "ingredient"
	// 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"
	// FieldQuantity holds the string denoting the quantity field in the database.
	FieldQuantity = "quantity"
	// FieldUnit holds the string denoting the unit field in the database.
	FieldUnit = "unit"
	// FieldRecipeID holds the string denoting the recipe_id field in the database.
	FieldRecipeID = "recipe_id"
	// FieldProductID holds the string denoting the product_id field in the database.
	FieldProductID = "product_id"
	// FieldOptional holds the string denoting the optional field in the database.
	FieldOptional = "optional"
	// EdgeRecipe holds the string denoting the recipe edge name in mutations.
	EdgeRecipe = "recipe"
	// EdgeProduct holds the string denoting the product edge name in mutations.
	EdgeProduct = "product"
	// Table holds the table name of the ingredient in the database.
	Table = "ingredients"
	// RecipeTable is the table that holds the recipe relation/edge.
	RecipeTable = "ingredients"
	// 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_id"
	// ProductTable is the table that holds the product relation/edge.
	ProductTable = "ingredients"
	// ProductInverseTable is the table name for the Product entity.
	// It exists in this package in order to avoid circular dependency with the "product" package.
	ProductInverseTable = "products"
	// ProductColumn is the table column denoting the product relation/edge.
	ProductColumn = "product_id"
)

Variables

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
	// DefaultOptional holds the default value on creation for the "optional" field.
	DefaultOptional bool
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for ingredient fields.

Functions

func And

func And(predicates ...predicate.Ingredient) predicate.Ingredient

And groups predicates with the AND operator between them.

func CreateTime

func CreateTime(v time.Time) predicate.Ingredient

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

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Ingredient

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

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Ingredient

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

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Ingredient

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

func CreateTimeIn

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

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

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Ingredient

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

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Ingredient

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

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Ingredient

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

func CreateTimeNotIn

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

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

func HasProduct

func HasProduct() predicate.Ingredient

HasProduct applies the HasEdge predicate on the "product" edge.

func HasProductWith

func HasProductWith(preds ...predicate.Product) predicate.Ingredient

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

func HasRecipe

func HasRecipe() predicate.Ingredient

HasRecipe applies the HasEdge predicate on the "recipe" edge.

func HasRecipeWith

func HasRecipeWith(preds ...predicate.Recipe) predicate.Ingredient

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Ingredient

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Ingredient

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Ingredient

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Ingredient

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Ingredient

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Ingredient

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Optional

func Optional(v bool) predicate.Ingredient

Optional applies equality check predicate on the "optional" field. It's identical to OptionalEQ.

func OptionalEQ

func OptionalEQ(v bool) predicate.Ingredient

OptionalEQ applies the EQ predicate on the "optional" field.

func OptionalNEQ

func OptionalNEQ(v bool) predicate.Ingredient

OptionalNEQ applies the NEQ predicate on the "optional" field.

func Or

func Or(predicates ...predicate.Ingredient) predicate.Ingredient

Or groups predicates with the OR operator between them.

func ProductID

func ProductID(v uuid.UUID) predicate.Ingredient

ProductID applies equality check predicate on the "product_id" field. It's identical to ProductIDEQ.

func ProductIDEQ

func ProductIDEQ(v uuid.UUID) predicate.Ingredient

ProductIDEQ applies the EQ predicate on the "product_id" field.

func ProductIDIn

func ProductIDIn(vs ...uuid.UUID) predicate.Ingredient

ProductIDIn applies the In predicate on the "product_id" field.

func ProductIDNEQ

func ProductIDNEQ(v uuid.UUID) predicate.Ingredient

ProductIDNEQ applies the NEQ predicate on the "product_id" field.

func ProductIDNotIn

func ProductIDNotIn(vs ...uuid.UUID) predicate.Ingredient

ProductIDNotIn applies the NotIn predicate on the "product_id" field.

func Quantity

func Quantity(v string) predicate.Ingredient

Quantity applies equality check predicate on the "quantity" field. It's identical to QuantityEQ.

func QuantityContains

func QuantityContains(v string) predicate.Ingredient

QuantityContains applies the Contains predicate on the "quantity" field.

func QuantityContainsFold

func QuantityContainsFold(v string) predicate.Ingredient

QuantityContainsFold applies the ContainsFold predicate on the "quantity" field.

func QuantityEQ

func QuantityEQ(v string) predicate.Ingredient

QuantityEQ applies the EQ predicate on the "quantity" field.

func QuantityEqualFold

func QuantityEqualFold(v string) predicate.Ingredient

QuantityEqualFold applies the EqualFold predicate on the "quantity" field.

func QuantityGT

func QuantityGT(v string) predicate.Ingredient

QuantityGT applies the GT predicate on the "quantity" field.

func QuantityGTE

func QuantityGTE(v string) predicate.Ingredient

QuantityGTE applies the GTE predicate on the "quantity" field.

func QuantityHasPrefix

func QuantityHasPrefix(v string) predicate.Ingredient

QuantityHasPrefix applies the HasPrefix predicate on the "quantity" field.

func QuantityHasSuffix

func QuantityHasSuffix(v string) predicate.Ingredient

QuantityHasSuffix applies the HasSuffix predicate on the "quantity" field.

func QuantityIn

func QuantityIn(vs ...string) predicate.Ingredient

QuantityIn applies the In predicate on the "quantity" field.

func QuantityIsNil

func QuantityIsNil() predicate.Ingredient

QuantityIsNil applies the IsNil predicate on the "quantity" field.

func QuantityLT

func QuantityLT(v string) predicate.Ingredient

QuantityLT applies the LT predicate on the "quantity" field.

func QuantityLTE

func QuantityLTE(v string) predicate.Ingredient

QuantityLTE applies the LTE predicate on the "quantity" field.

func QuantityNEQ

func QuantityNEQ(v string) predicate.Ingredient

QuantityNEQ applies the NEQ predicate on the "quantity" field.

func QuantityNotIn

func QuantityNotIn(vs ...string) predicate.Ingredient

QuantityNotIn applies the NotIn predicate on the "quantity" field.

func QuantityNotNil

func QuantityNotNil() predicate.Ingredient

QuantityNotNil applies the NotNil predicate on the "quantity" field.

func RecipeID

func RecipeID(v uuid.UUID) predicate.Ingredient

RecipeID applies equality check predicate on the "recipe_id" field. It's identical to RecipeIDEQ.

func RecipeIDEQ

func RecipeIDEQ(v uuid.UUID) predicate.Ingredient

RecipeIDEQ applies the EQ predicate on the "recipe_id" field.

func RecipeIDIn

func RecipeIDIn(vs ...uuid.UUID) predicate.Ingredient

RecipeIDIn applies the In predicate on the "recipe_id" field.

func RecipeIDNEQ

func RecipeIDNEQ(v uuid.UUID) predicate.Ingredient

RecipeIDNEQ applies the NEQ predicate on the "recipe_id" field.

func RecipeIDNotIn

func RecipeIDNotIn(vs ...uuid.UUID) predicate.Ingredient

RecipeIDNotIn applies the NotIn predicate on the "recipe_id" field.

func Unit

func Unit(v string) predicate.Ingredient

Unit applies equality check predicate on the "unit" field. It's identical to UnitEQ.

func UnitContains

func UnitContains(v string) predicate.Ingredient

UnitContains applies the Contains predicate on the "unit" field.

func UnitContainsFold

func UnitContainsFold(v string) predicate.Ingredient

UnitContainsFold applies the ContainsFold predicate on the "unit" field.

func UnitEQ

func UnitEQ(v string) predicate.Ingredient

UnitEQ applies the EQ predicate on the "unit" field.

func UnitEqualFold

func UnitEqualFold(v string) predicate.Ingredient

UnitEqualFold applies the EqualFold predicate on the "unit" field.

func UnitGT

func UnitGT(v string) predicate.Ingredient

UnitGT applies the GT predicate on the "unit" field.

func UnitGTE

func UnitGTE(v string) predicate.Ingredient

UnitGTE applies the GTE predicate on the "unit" field.

func UnitHasPrefix

func UnitHasPrefix(v string) predicate.Ingredient

UnitHasPrefix applies the HasPrefix predicate on the "unit" field.

func UnitHasSuffix

func UnitHasSuffix(v string) predicate.Ingredient

UnitHasSuffix applies the HasSuffix predicate on the "unit" field.

func UnitIn

func UnitIn(vs ...string) predicate.Ingredient

UnitIn applies the In predicate on the "unit" field.

func UnitIsNil

func UnitIsNil() predicate.Ingredient

UnitIsNil applies the IsNil predicate on the "unit" field.

func UnitLT

func UnitLT(v string) predicate.Ingredient

UnitLT applies the LT predicate on the "unit" field.

func UnitLTE

func UnitLTE(v string) predicate.Ingredient

UnitLTE applies the LTE predicate on the "unit" field.

func UnitNEQ

func UnitNEQ(v string) predicate.Ingredient

UnitNEQ applies the NEQ predicate on the "unit" field.

func UnitNotIn

func UnitNotIn(vs ...string) predicate.Ingredient

UnitNotIn applies the NotIn predicate on the "unit" field.

func UnitNotNil

func UnitNotNil() predicate.Ingredient

UnitNotNil applies the NotNil predicate on the "unit" field.

func UpdateTime

func UpdateTime(v time.Time) predicate.Ingredient

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

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Ingredient

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

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Ingredient

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

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Ingredient

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

func UpdateTimeIn

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

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

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Ingredient

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

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Ingredient

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

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Ingredient

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

func UpdateTimeNotIn

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

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 OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Ingredient queries.

func ByCreateTime

func ByCreateTime(opts ...sql.OrderTermOption) OrderOption

ByCreateTime orders the results by the create_time field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByOptional

func ByOptional(opts ...sql.OrderTermOption) OrderOption

ByOptional orders the results by the optional field.

func ByProductField

func ByProductField(field string, opts ...sql.OrderTermOption) OrderOption

ByProductField orders the results by product field.

func ByProductID

func ByProductID(opts ...sql.OrderTermOption) OrderOption

ByProductID orders the results by the product_id field.

func ByQuantity

func ByQuantity(opts ...sql.OrderTermOption) OrderOption

ByQuantity orders the results by the quantity field.

func ByRecipeField

func ByRecipeField(field string, opts ...sql.OrderTermOption) OrderOption

ByRecipeField orders the results by recipe field.

func ByRecipeID

func ByRecipeID(opts ...sql.OrderTermOption) OrderOption

ByRecipeID orders the results by the recipe_id field.

func ByUnit

func ByUnit(opts ...sql.OrderTermOption) OrderOption

ByUnit orders the results by the unit 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