dishalias

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the dishalias type in the database.
	Label = "dish_alias"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "alias_name"
	// FieldNormalizedAliasName holds the string denoting the normalized_alias_name field in the database.
	FieldNormalizedAliasName = "normalized_alias_name"
	// EdgeDish holds the string denoting the dish edge name in mutations.
	EdgeDish = "dish"
	// DishFieldID holds the string denoting the ID field of the Dish.
	DishFieldID = "id"
	// Table holds the table name of the dishalias in the database.
	Table = "dish_alias"
	// DishTable is the table that holds the dish relation/edge.
	DishTable = "dish_alias"
	// DishInverseTable is the table name for the Dish entity.
	// It exists in this package in order to avoid circular dependency with the "dish" package.
	DishInverseTable = "dish"
	// DishColumn is the table column denoting the dish relation/edge.
	DishColumn = "dish"
)

Variables

Columns holds all SQL columns for dishalias fields.

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

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

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

Functions

func And

func And(predicates ...predicate.DishAlias) predicate.DishAlias

And groups predicates with the AND operator between them.

func HasDish

func HasDish() predicate.DishAlias

HasDish applies the HasEdge predicate on the "dish" edge.

func HasDishWith

func HasDishWith(preds ...predicate.Dish) predicate.DishAlias

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

func ID

func ID(id string) predicate.DishAlias

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.DishAlias

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.DishAlias

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.DishAlias

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.DishAlias

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.DishAlias

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.DishAlias

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.DishAlias

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.DishAlias

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func NormalizedAliasName

func NormalizedAliasName(v string) predicate.DishAlias

NormalizedAliasName applies equality check predicate on the "normalized_alias_name" field. It's identical to NormalizedAliasNameEQ.

func NormalizedAliasNameContains

func NormalizedAliasNameContains(v string) predicate.DishAlias

NormalizedAliasNameContains applies the Contains predicate on the "normalized_alias_name" field.

func NormalizedAliasNameContainsFold

func NormalizedAliasNameContainsFold(v string) predicate.DishAlias

NormalizedAliasNameContainsFold applies the ContainsFold predicate on the "normalized_alias_name" field.

func NormalizedAliasNameEQ

func NormalizedAliasNameEQ(v string) predicate.DishAlias

NormalizedAliasNameEQ applies the EQ predicate on the "normalized_alias_name" field.

func NormalizedAliasNameEqualFold

func NormalizedAliasNameEqualFold(v string) predicate.DishAlias

NormalizedAliasNameEqualFold applies the EqualFold predicate on the "normalized_alias_name" field.

func NormalizedAliasNameGT

func NormalizedAliasNameGT(v string) predicate.DishAlias

NormalizedAliasNameGT applies the GT predicate on the "normalized_alias_name" field.

func NormalizedAliasNameGTE

func NormalizedAliasNameGTE(v string) predicate.DishAlias

NormalizedAliasNameGTE applies the GTE predicate on the "normalized_alias_name" field.

func NormalizedAliasNameHasPrefix

func NormalizedAliasNameHasPrefix(v string) predicate.DishAlias

NormalizedAliasNameHasPrefix applies the HasPrefix predicate on the "normalized_alias_name" field.

func NormalizedAliasNameHasSuffix

func NormalizedAliasNameHasSuffix(v string) predicate.DishAlias

NormalizedAliasNameHasSuffix applies the HasSuffix predicate on the "normalized_alias_name" field.

func NormalizedAliasNameIn

func NormalizedAliasNameIn(vs ...string) predicate.DishAlias

NormalizedAliasNameIn applies the In predicate on the "normalized_alias_name" field.

func NormalizedAliasNameLT

func NormalizedAliasNameLT(v string) predicate.DishAlias

NormalizedAliasNameLT applies the LT predicate on the "normalized_alias_name" field.

func NormalizedAliasNameLTE

func NormalizedAliasNameLTE(v string) predicate.DishAlias

NormalizedAliasNameLTE applies the LTE predicate on the "normalized_alias_name" field.

func NormalizedAliasNameNEQ

func NormalizedAliasNameNEQ(v string) predicate.DishAlias

NormalizedAliasNameNEQ applies the NEQ predicate on the "normalized_alias_name" field.

func NormalizedAliasNameNotIn

func NormalizedAliasNameNotIn(vs ...string) predicate.DishAlias

NormalizedAliasNameNotIn applies the NotIn predicate on the "normalized_alias_name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.DishAlias) predicate.DishAlias

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

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the DishAlias queries.

func ByDishField

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

ByDishField orders the results by dish field.

func ByID

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

ByID orders the results by the id field.

func ByNormalizedAliasName

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

ByNormalizedAliasName orders the results by the normalized_alias_name field.

Jump to

Keyboard shortcuts

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