recipeingredient

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the recipeingredient type in the database.
	Label = "recipe_ingredient"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// 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"
	// EdgeIngredient holds the string denoting the ingredient edge name in mutations.
	EdgeIngredient = "ingredient"
	// Table holds the table name of the recipeingredient in the database.
	Table = "recipe_ingredients"
	// IngredientTable is the table that holds the ingredient relation/edge.
	IngredientTable = "recipe_ingredients"
	// IngredientInverseTable is the table name for the Ingredient entity.
	// It exists in this package in order to avoid circular dependency with the "ingredient" package.
	IngredientInverseTable = "ingredients"
	// IngredientColumn is the table column denoting the ingredient relation/edge.
	IngredientColumn = "ingredient_recipe_ingredients"
)

Variables

Columns holds all SQL columns for recipeingredient fields.

View Source
var ForeignKeys = []string{
	"ingredient_recipe_ingredients",
	"recipe_recipe_ingredients",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "recipe_ingredients" table and are not defined as standalone fields in the schema.

Functions

func And

And groups predicates with the AND operator between them.

func HasIngredient

func HasIngredient() predicate.RecipeIngredient

HasIngredient applies the HasEdge predicate on the "ingredient" edge.

func HasIngredientWith

func HasIngredientWith(preds ...predicate.Ingredient) predicate.RecipeIngredient

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

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.RecipeIngredient

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.RecipeIngredient

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.RecipeIngredient

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.RecipeIngredient

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.RecipeIngredient

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func Quantity

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

func QuantityEQ

func QuantityEQ(v float32) predicate.RecipeIngredient

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

func QuantityGT

func QuantityGT(v float32) predicate.RecipeIngredient

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

func QuantityGTE

func QuantityGTE(v float32) predicate.RecipeIngredient

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

func QuantityIn

func QuantityIn(vs ...float32) predicate.RecipeIngredient

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

func QuantityLT

func QuantityLT(v float32) predicate.RecipeIngredient

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

func QuantityLTE

func QuantityLTE(v float32) predicate.RecipeIngredient

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

func QuantityNEQ

func QuantityNEQ(v float32) predicate.RecipeIngredient

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

func QuantityNotIn

func QuantityNotIn(vs ...float32) predicate.RecipeIngredient

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

func Unit

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

func UnitContains

func UnitContains(v string) predicate.RecipeIngredient

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

func UnitContainsFold

func UnitContainsFold(v string) predicate.RecipeIngredient

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

func UnitEQ

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

func UnitEqualFold

func UnitEqualFold(v string) predicate.RecipeIngredient

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

func UnitGT

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

func UnitGTE

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

func UnitHasPrefix

func UnitHasPrefix(v string) predicate.RecipeIngredient

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

func UnitHasSuffix

func UnitHasSuffix(v string) predicate.RecipeIngredient

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

func UnitIn

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

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

func UnitLT

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

func UnitLTE

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

func UnitNEQ

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

func UnitNotIn

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

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

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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