Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Dish) predicate.Dish
- func HasAliases() predicate.Dish
- func HasAliasesWith(preds ...predicate.DishAlias) predicate.Dish
- func HasDishOccurrences() predicate.Dish
- func HasDishOccurrencesWith(preds ...predicate.Occurrence) predicate.Dish
- func HasSideDishOccurrence() predicate.Dish
- func HasSideDishOccurrenceWith(preds ...predicate.Occurrence) predicate.Dish
- func ID(id uuid.UUID) predicate.Dish
- func IDEQ(id uuid.UUID) predicate.Dish
- func IDGT(id uuid.UUID) predicate.Dish
- func IDGTE(id uuid.UUID) predicate.Dish
- func IDIn(ids ...uuid.UUID) predicate.Dish
- func IDLT(id uuid.UUID) predicate.Dish
- func IDLTE(id uuid.UUID) predicate.Dish
- func IDNEQ(id uuid.UUID) predicate.Dish
- func IDNotIn(ids ...uuid.UUID) predicate.Dish
- func NameDe(v string) predicate.Dish
- func NameDeContains(v string) predicate.Dish
- func NameDeContainsFold(v string) predicate.Dish
- func NameDeEQ(v string) predicate.Dish
- func NameDeEqualFold(v string) predicate.Dish
- func NameDeGT(v string) predicate.Dish
- func NameDeGTE(v string) predicate.Dish
- func NameDeHasPrefix(v string) predicate.Dish
- func NameDeHasSuffix(v string) predicate.Dish
- func NameDeIn(vs ...string) predicate.Dish
- func NameDeLT(v string) predicate.Dish
- func NameDeLTE(v string) predicate.Dish
- func NameDeNEQ(v string) predicate.Dish
- func NameDeNotIn(vs ...string) predicate.Dish
- func NameEn(v string) predicate.Dish
- func NameEnContains(v string) predicate.Dish
- func NameEnContainsFold(v string) predicate.Dish
- func NameEnEQ(v string) predicate.Dish
- func NameEnEqualFold(v string) predicate.Dish
- func NameEnGT(v string) predicate.Dish
- func NameEnGTE(v string) predicate.Dish
- func NameEnHasPrefix(v string) predicate.Dish
- func NameEnHasSuffix(v string) predicate.Dish
- func NameEnIn(vs ...string) predicate.Dish
- func NameEnIsNil() predicate.Dish
- func NameEnLT(v string) predicate.Dish
- func NameEnLTE(v string) predicate.Dish
- func NameEnNEQ(v string) predicate.Dish
- func NameEnNotIn(vs ...string) predicate.Dish
- func NameEnNotNil() predicate.Dish
- func Not(p predicate.Dish) predicate.Dish
- func Or(predicates ...predicate.Dish) predicate.Dish
- func ValidColumn(column string) bool
- type OrderOption
- func ByAliases(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAliasesCount(opts ...sql.OrderTermOption) OrderOption
- func ByDishOccurrences(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByDishOccurrencesCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByNameDe(opts ...sql.OrderTermOption) OrderOption
- func ByNameEn(opts ...sql.OrderTermOption) OrderOption
- func BySideDishOccurrence(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySideDishOccurrenceCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the dish type in the database. Label = "dish" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldNameDe holds the string denoting the name_de field in the database. FieldNameDe = "name_de" // FieldNameEn holds the string denoting the name_en field in the database. FieldNameEn = "name_en" // EdgeDishOccurrences holds the string denoting the dish_occurrences edge name in mutations. EdgeDishOccurrences = "dish_occurrences" // EdgeAliases holds the string denoting the aliases edge name in mutations. EdgeAliases = "aliases" // EdgeSideDishOccurrence holds the string denoting the side_dish_occurrence edge name in mutations. EdgeSideDishOccurrence = "side_dish_occurrence" // DishAliasFieldID holds the string denoting the ID field of the DishAlias. DishAliasFieldID = "alias_name" // Table holds the table name of the dish in the database. Table = "dish" // DishOccurrencesTable is the table that holds the dish_occurrences relation/edge. DishOccurrencesTable = "occurrence" // DishOccurrencesInverseTable is the table name for the Occurrence entity. // It exists in this package in order to avoid circular dependency with the "occurrence" package. DishOccurrencesInverseTable = "occurrence" // DishOccurrencesColumn is the table column denoting the dish_occurrences relation/edge. DishOccurrencesColumn = "dish" // AliasesTable is the table that holds the aliases relation/edge. AliasesTable = "dish_alias" // AliasesInverseTable is the table name for the DishAlias entity. // It exists in this package in order to avoid circular dependency with the "dishalias" package. AliasesInverseTable = "dish_alias" // AliasesColumn is the table column denoting the aliases relation/edge. AliasesColumn = "dish" // SideDishOccurrenceTable is the table that holds the side_dish_occurrence relation/edge. The primary key declared below. SideDishOccurrenceTable = "occurrence_side_dishes" // SideDishOccurrenceInverseTable is the table name for the Occurrence entity. // It exists in this package in order to avoid circular dependency with the "occurrence" package. SideDishOccurrenceInverseTable = "occurrence" )
Variables ¶
var ( // NameDeValidator is a validator for the "name_de" field. It is called by the builders before save. NameDeValidator func(string) error // NameEnValidator is a validator for the "name_en" field. It is called by the builders before save. NameEnValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldNameDe, FieldNameEn, }
Columns holds all SQL columns for dish fields.
var ( // SideDishOccurrencePrimaryKey and SideDishOccurrenceColumn2 are the table columns denoting the // primary key for the side_dish_occurrence relation (M2M). SideDishOccurrencePrimaryKey = []string{"occurrence", "dish"} )
Functions ¶
func HasAliases ¶
HasAliases applies the HasEdge predicate on the "aliases" edge.
func HasAliasesWith ¶
HasAliasesWith applies the HasEdge predicate on the "aliases" edge with a given conditions (other predicates).
func HasDishOccurrences ¶
HasDishOccurrences applies the HasEdge predicate on the "dish_occurrences" edge.
func HasDishOccurrencesWith ¶
func HasDishOccurrencesWith(preds ...predicate.Occurrence) predicate.Dish
HasDishOccurrencesWith applies the HasEdge predicate on the "dish_occurrences" edge with a given conditions (other predicates).
func HasSideDishOccurrence ¶
HasSideDishOccurrence applies the HasEdge predicate on the "side_dish_occurrence" edge.
func HasSideDishOccurrenceWith ¶
func HasSideDishOccurrenceWith(preds ...predicate.Occurrence) predicate.Dish
HasSideDishOccurrenceWith applies the HasEdge predicate on the "side_dish_occurrence" edge with a given conditions (other predicates).
func NameDe ¶
NameDe applies equality check predicate on the "name_de" field. It's identical to NameDeEQ.
func NameDeContains ¶
NameDeContains applies the Contains predicate on the "name_de" field.
func NameDeContainsFold ¶
NameDeContainsFold applies the ContainsFold predicate on the "name_de" field.
func NameDeEqualFold ¶
NameDeEqualFold applies the EqualFold predicate on the "name_de" field.
func NameDeHasPrefix ¶
NameDeHasPrefix applies the HasPrefix predicate on the "name_de" field.
func NameDeHasSuffix ¶
NameDeHasSuffix applies the HasSuffix predicate on the "name_de" field.
func NameDeNotIn ¶
NameDeNotIn applies the NotIn predicate on the "name_de" field.
func NameEn ¶
NameEn applies equality check predicate on the "name_en" field. It's identical to NameEnEQ.
func NameEnContains ¶
NameEnContains applies the Contains predicate on the "name_en" field.
func NameEnContainsFold ¶
NameEnContainsFold applies the ContainsFold predicate on the "name_en" field.
func NameEnEqualFold ¶
NameEnEqualFold applies the EqualFold predicate on the "name_en" field.
func NameEnHasPrefix ¶
NameEnHasPrefix applies the HasPrefix predicate on the "name_en" field.
func NameEnHasSuffix ¶
NameEnHasSuffix applies the HasSuffix predicate on the "name_en" field.
func NameEnIsNil ¶
NameEnIsNil applies the IsNil predicate on the "name_en" field.
func NameEnNotIn ¶
NameEnNotIn applies the NotIn predicate on the "name_en" field.
func NameEnNotNil ¶
NameEnNotNil applies the NotNil predicate on the "name_en" 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 Dish queries.
func ByAliases ¶
func ByAliases(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByAliases orders the results by aliases terms.
func ByAliasesCount ¶
func ByAliasesCount(opts ...sql.OrderTermOption) OrderOption
ByAliasesCount orders the results by aliases count.
func ByDishOccurrences ¶
func ByDishOccurrences(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByDishOccurrences orders the results by dish_occurrences terms.
func ByDishOccurrencesCount ¶
func ByDishOccurrencesCount(opts ...sql.OrderTermOption) OrderOption
ByDishOccurrencesCount orders the results by dish_occurrences count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByNameDe ¶
func ByNameDe(opts ...sql.OrderTermOption) OrderOption
ByNameDe orders the results by the name_de field.
func ByNameEn ¶
func ByNameEn(opts ...sql.OrderTermOption) OrderOption
ByNameEn orders the results by the name_en field.
func BySideDishOccurrence ¶
func BySideDishOccurrence(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
BySideDishOccurrence orders the results by side_dish_occurrence terms.
func BySideDishOccurrenceCount ¶
func BySideDishOccurrenceCount(opts ...sql.OrderTermOption) OrderOption
BySideDishOccurrenceCount orders the results by side_dish_occurrence count.