receipt

package
v0.0.0-...-9819f5b Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the receipt type in the database.
	Label = "receipt"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name vertex property in the database.
	FieldName = "name"
	// FieldPortions holds the string denoting the portions vertex property in the database.
	FieldPortions = "portions"

	// Table holds the table name of the receipt in the database.
	Table = "receipts"
	// IngredientsTable is the table the 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 = "receipt_ingredient_id"
	// DirectionsTable is the table the holds the directions relation/edge.
	DirectionsTable = "directions"
	// DirectionsInverseTable is the table name for the Direction entity.
	// It exists in this package in order to avoid circular dependency with the "direction" package.
	DirectionsInverseTable = "directions"
	// DirectionsColumn is the table column denoting the directions relation/edge.
	DirectionsColumn = "receipt_direction_id"
)

Variables

Columns holds all SQL columns are receipt fields.

Functions

func And

func And(predicates ...predicate.Receipt) predicate.Receipt

And groups list of predicates with the AND operator between them.

func HasDirections

func HasDirections() predicate.Receipt

HasDirections applies the HasEdge predicate on the "directions" edge.

func HasDirectionsWith

func HasDirectionsWith(preds ...predicate.Direction) predicate.Receipt

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

func HasIngredients

func HasIngredients() predicate.Receipt

HasIngredients applies the HasEdge predicate on the "ingredients" edge.

func HasIngredientsWith

func HasIngredientsWith(preds ...predicate.Ingredient) predicate.Receipt

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

func ID

func ID(id int) predicate.Receipt

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id int) predicate.Receipt

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Receipt

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Receipt

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Receipt

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Receipt

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Receipt

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Receipt

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

func NameContains

func NameContains(v string) predicate.Receipt

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

func NameContainsFold

func NameContainsFold(v string) predicate.Receipt

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

func NameEQ

func NameEQ(v string) predicate.Receipt

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

func NameEqualFold

func NameEqualFold(v string) predicate.Receipt

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

func NameGT

func NameGT(v string) predicate.Receipt

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

func NameGTE

func NameGTE(v string) predicate.Receipt

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Receipt

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Receipt

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Receipt

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

func NameLTE

func NameLTE(v string) predicate.Receipt

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

func NameNEQ

func NameNEQ(v string) predicate.Receipt

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

func NameNotIn

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

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.Receipt) predicate.Receipt

Or groups list of predicates with the OR operator between them.

func Portions

func Portions(v int) predicate.Receipt

Portions applies equality check predicate on the "portions" field. It's identical to PortionsEQ.

func PortionsEQ

func PortionsEQ(v int) predicate.Receipt

PortionsEQ applies the EQ predicate on the "portions" field.

func PortionsGT

func PortionsGT(v int) predicate.Receipt

PortionsGT applies the GT predicate on the "portions" field.

func PortionsGTE

func PortionsGTE(v int) predicate.Receipt

PortionsGTE applies the GTE predicate on the "portions" field.

func PortionsIn

func PortionsIn(vs ...int) predicate.Receipt

PortionsIn applies the In predicate on the "portions" field.

func PortionsLT

func PortionsLT(v int) predicate.Receipt

PortionsLT applies the LT predicate on the "portions" field.

func PortionsLTE

func PortionsLTE(v int) predicate.Receipt

PortionsLTE applies the LTE predicate on the "portions" field.

func PortionsNEQ

func PortionsNEQ(v int) predicate.Receipt

PortionsNEQ applies the NEQ predicate on the "portions" field.

func PortionsNotIn

func PortionsNotIn(vs ...int) predicate.Receipt

PortionsNotIn applies the NotIn predicate on the "portions" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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