ingredient

package
v0.0.0-...-e82a045 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: MIT Imports: 2 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"
	// FieldKind holds the string denoting the kind field in the database.
	FieldKind = "kind"
	// FieldAmount holds the string denoting the amount field in the database.
	FieldAmount = "amount"
	// Table holds the table name of the ingredient in the database.
	Table = "ingredients"
)

Variables

Columns holds all SQL columns for ingredient fields.

View Source
var (
	// IDValidator is a validator for the "id" field. It is called by the builders before save.
	IDValidator func(string) error
)

Functions

func Amount

func Amount(v float64) predicate.Ingredient

Amount applies equality check predicate on the "amount" field. It's identical to AmountEQ.

func AmountEQ

func AmountEQ(v float64) predicate.Ingredient

AmountEQ applies the EQ predicate on the "amount" field.

func AmountGT

func AmountGT(v float64) predicate.Ingredient

AmountGT applies the GT predicate on the "amount" field.

func AmountGTE

func AmountGTE(v float64) predicate.Ingredient

AmountGTE applies the GTE predicate on the "amount" field.

func AmountIn

func AmountIn(vs ...float64) predicate.Ingredient

AmountIn applies the In predicate on the "amount" field.

func AmountLT

func AmountLT(v float64) predicate.Ingredient

AmountLT applies the LT predicate on the "amount" field.

func AmountLTE

func AmountLTE(v float64) predicate.Ingredient

AmountLTE applies the LTE predicate on the "amount" field.

func AmountNEQ

func AmountNEQ(v float64) predicate.Ingredient

AmountNEQ applies the NEQ predicate on the "amount" field.

func AmountNotIn

func AmountNotIn(vs ...float64) predicate.Ingredient

AmountNotIn applies the NotIn predicate on the "amount" field.

func And

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

And groups predicates with the AND operator between them.

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id string) predicate.Ingredient

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Ingredient

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Ingredient

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Ingredient

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Ingredient

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Ingredient

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Ingredient

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Ingredient

IDNotIn applies the NotIn predicate on the ID field.

func Kind

func Kind(v string) predicate.Ingredient

Kind applies equality check predicate on the "kind" field. It's identical to KindEQ.

func KindContains

func KindContains(v string) predicate.Ingredient

KindContains applies the Contains predicate on the "kind" field.

func KindContainsFold

func KindContainsFold(v string) predicate.Ingredient

KindContainsFold applies the ContainsFold predicate on the "kind" field.

func KindEQ

func KindEQ(v string) predicate.Ingredient

KindEQ applies the EQ predicate on the "kind" field.

func KindEqualFold

func KindEqualFold(v string) predicate.Ingredient

KindEqualFold applies the EqualFold predicate on the "kind" field.

func KindGT

func KindGT(v string) predicate.Ingredient

KindGT applies the GT predicate on the "kind" field.

func KindGTE

func KindGTE(v string) predicate.Ingredient

KindGTE applies the GTE predicate on the "kind" field.

func KindHasPrefix

func KindHasPrefix(v string) predicate.Ingredient

KindHasPrefix applies the HasPrefix predicate on the "kind" field.

func KindHasSuffix

func KindHasSuffix(v string) predicate.Ingredient

KindHasSuffix applies the HasSuffix predicate on the "kind" field.

func KindIn

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

KindIn applies the In predicate on the "kind" field.

func KindLT

func KindLT(v string) predicate.Ingredient

KindLT applies the LT predicate on the "kind" field.

func KindLTE

func KindLTE(v string) predicate.Ingredient

KindLTE applies the LTE predicate on the "kind" field.

func KindNEQ

func KindNEQ(v string) predicate.Ingredient

KindNEQ applies the NEQ predicate on the "kind" field.

func KindNotIn

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

KindNotIn applies the NotIn predicate on the "kind" field.

func Not

Not applies the not operator on the given predicate.

func Or

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

Or groups predicates with the OR operator between them.

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