Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.DishAlias) predicate.DishAlias
- func HasDish() predicate.DishAlias
- func HasDishWith(preds ...predicate.Dish) predicate.DishAlias
- func ID(id string) predicate.DishAlias
- func IDContainsFold(id string) predicate.DishAlias
- func IDEQ(id string) predicate.DishAlias
- func IDEqualFold(id string) predicate.DishAlias
- func IDGT(id string) predicate.DishAlias
- func IDGTE(id string) predicate.DishAlias
- func IDIn(ids ...string) predicate.DishAlias
- func IDLT(id string) predicate.DishAlias
- func IDLTE(id string) predicate.DishAlias
- func IDNEQ(id string) predicate.DishAlias
- func IDNotIn(ids ...string) predicate.DishAlias
- func NormalizedAliasName(v string) predicate.DishAlias
- func NormalizedAliasNameContains(v string) predicate.DishAlias
- func NormalizedAliasNameContainsFold(v string) predicate.DishAlias
- func NormalizedAliasNameEQ(v string) predicate.DishAlias
- func NormalizedAliasNameEqualFold(v string) predicate.DishAlias
- func NormalizedAliasNameGT(v string) predicate.DishAlias
- func NormalizedAliasNameGTE(v string) predicate.DishAlias
- func NormalizedAliasNameHasPrefix(v string) predicate.DishAlias
- func NormalizedAliasNameHasSuffix(v string) predicate.DishAlias
- func NormalizedAliasNameIn(vs ...string) predicate.DishAlias
- func NormalizedAliasNameLT(v string) predicate.DishAlias
- func NormalizedAliasNameLTE(v string) predicate.DishAlias
- func NormalizedAliasNameNEQ(v string) predicate.DishAlias
- func NormalizedAliasNameNotIn(vs ...string) predicate.DishAlias
- func Not(p predicate.DishAlias) predicate.DishAlias
- func Or(predicates ...predicate.DishAlias) predicate.DishAlias
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldNormalizedAliasName, }
Columns holds all SQL columns for dishalias fields.
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.
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 HasDishWith ¶
HasDishWith applies the HasEdge predicate on the "dish" edge with a given conditions (other predicates).
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func NormalizedAliasName ¶
NormalizedAliasName applies equality check predicate on the "normalized_alias_name" field. It's identical to NormalizedAliasNameEQ.
func NormalizedAliasNameContains ¶
NormalizedAliasNameContains applies the Contains predicate on the "normalized_alias_name" field.
func NormalizedAliasNameContainsFold ¶
NormalizedAliasNameContainsFold applies the ContainsFold predicate on the "normalized_alias_name" field.
func NormalizedAliasNameEQ ¶
NormalizedAliasNameEQ applies the EQ predicate on the "normalized_alias_name" field.
func NormalizedAliasNameEqualFold ¶
NormalizedAliasNameEqualFold applies the EqualFold predicate on the "normalized_alias_name" field.
func NormalizedAliasNameGT ¶
NormalizedAliasNameGT applies the GT predicate on the "normalized_alias_name" field.
func NormalizedAliasNameGTE ¶
NormalizedAliasNameGTE applies the GTE predicate on the "normalized_alias_name" field.
func NormalizedAliasNameHasPrefix ¶
NormalizedAliasNameHasPrefix applies the HasPrefix predicate on the "normalized_alias_name" field.
func NormalizedAliasNameHasSuffix ¶
NormalizedAliasNameHasSuffix applies the HasSuffix predicate on the "normalized_alias_name" field.
func NormalizedAliasNameIn ¶
NormalizedAliasNameIn applies the In predicate on the "normalized_alias_name" field.
func NormalizedAliasNameLT ¶
NormalizedAliasNameLT applies the LT predicate on the "normalized_alias_name" field.
func NormalizedAliasNameLTE ¶
NormalizedAliasNameLTE applies the LTE predicate on the "normalized_alias_name" field.
func NormalizedAliasNameNEQ ¶
NormalizedAliasNameNEQ applies the NEQ predicate on the "normalized_alias_name" field.
func NormalizedAliasNameNotIn ¶
NormalizedAliasNameNotIn applies the NotIn predicate on the "normalized_alias_name" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.