Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Occurrence) predicate.Occurrence
- func Carbohydrates(v int) predicate.Occurrence
- func CarbohydratesEQ(v int) predicate.Occurrence
- func CarbohydratesGT(v int) predicate.Occurrence
- func CarbohydratesGTE(v int) predicate.Occurrence
- func CarbohydratesIn(vs ...int) predicate.Occurrence
- func CarbohydratesIsNil() predicate.Occurrence
- func CarbohydratesLT(v int) predicate.Occurrence
- func CarbohydratesLTE(v int) predicate.Occurrence
- func CarbohydratesNEQ(v int) predicate.Occurrence
- func CarbohydratesNotIn(vs ...int) predicate.Occurrence
- func CarbohydratesNotNil() predicate.Occurrence
- func Date(v time.Time) predicate.Occurrence
- func DateEQ(v time.Time) predicate.Occurrence
- func DateGT(v time.Time) predicate.Occurrence
- func DateGTE(v time.Time) predicate.Occurrence
- func DateIn(vs ...time.Time) predicate.Occurrence
- func DateLT(v time.Time) predicate.Occurrence
- func DateLTE(v time.Time) predicate.Occurrence
- func DateNEQ(v time.Time) predicate.Occurrence
- func DateNotIn(vs ...time.Time) predicate.Occurrence
- func Fat(v int) predicate.Occurrence
- func FatEQ(v int) predicate.Occurrence
- func FatGT(v int) predicate.Occurrence
- func FatGTE(v int) predicate.Occurrence
- func FatIn(vs ...int) predicate.Occurrence
- func FatIsNil() predicate.Occurrence
- func FatLT(v int) predicate.Occurrence
- func FatLTE(v int) predicate.Occurrence
- func FatNEQ(v int) predicate.Occurrence
- func FatNotIn(vs ...int) predicate.Occurrence
- func FatNotNil() predicate.Occurrence
- func Fiber(v int) predicate.Occurrence
- func FiberEQ(v int) predicate.Occurrence
- func FiberGT(v int) predicate.Occurrence
- func FiberGTE(v int) predicate.Occurrence
- func FiberIn(vs ...int) predicate.Occurrence
- func FiberIsNil() predicate.Occurrence
- func FiberLT(v int) predicate.Occurrence
- func FiberLTE(v int) predicate.Occurrence
- func FiberNEQ(v int) predicate.Occurrence
- func FiberNotIn(vs ...int) predicate.Occurrence
- func FiberNotNil() predicate.Occurrence
- func HasDish() predicate.Occurrence
- func HasDishWith(preds ...predicate.Dish) predicate.Occurrence
- func HasLocation() predicate.Occurrence
- func HasLocationWith(preds ...predicate.Location) predicate.Occurrence
- func HasReviews() predicate.Occurrence
- func HasReviewsWith(preds ...predicate.Review) predicate.Occurrence
- func HasSideDishes() predicate.Occurrence
- func HasSideDishesWith(preds ...predicate.Dish) predicate.Occurrence
- func HasTags() predicate.Occurrence
- func HasTagsWith(preds ...predicate.Tag) predicate.Occurrence
- func ID(id uuid.UUID) predicate.Occurrence
- func IDEQ(id uuid.UUID) predicate.Occurrence
- func IDGT(id uuid.UUID) predicate.Occurrence
- func IDGTE(id uuid.UUID) predicate.Occurrence
- func IDIn(ids ...uuid.UUID) predicate.Occurrence
- func IDLT(id uuid.UUID) predicate.Occurrence
- func IDLTE(id uuid.UUID) predicate.Occurrence
- func IDNEQ(id uuid.UUID) predicate.Occurrence
- func IDNotIn(ids ...uuid.UUID) predicate.Occurrence
- func Kcal(v int) predicate.Occurrence
- func KcalEQ(v int) predicate.Occurrence
- func KcalGT(v int) predicate.Occurrence
- func KcalGTE(v int) predicate.Occurrence
- func KcalIn(vs ...int) predicate.Occurrence
- func KcalIsNil() predicate.Occurrence
- func KcalLT(v int) predicate.Occurrence
- func KcalLTE(v int) predicate.Occurrence
- func KcalNEQ(v int) predicate.Occurrence
- func KcalNotIn(vs ...int) predicate.Occurrence
- func KcalNotNil() predicate.Occurrence
- func Kj(v int) predicate.Occurrence
- func KjEQ(v int) predicate.Occurrence
- func KjGT(v int) predicate.Occurrence
- func KjGTE(v int) predicate.Occurrence
- func KjIn(vs ...int) predicate.Occurrence
- func KjIsNil() predicate.Occurrence
- func KjLT(v int) predicate.Occurrence
- func KjLTE(v int) predicate.Occurrence
- func KjNEQ(v int) predicate.Occurrence
- func KjNotIn(vs ...int) predicate.Occurrence
- func KjNotNil() predicate.Occurrence
- func Not(p predicate.Occurrence) predicate.Occurrence
- func NotAvailableAfter(v time.Time) predicate.Occurrence
- func NotAvailableAfterEQ(v time.Time) predicate.Occurrence
- func NotAvailableAfterGT(v time.Time) predicate.Occurrence
- func NotAvailableAfterGTE(v time.Time) predicate.Occurrence
- func NotAvailableAfterIn(vs ...time.Time) predicate.Occurrence
- func NotAvailableAfterIsNil() predicate.Occurrence
- func NotAvailableAfterLT(v time.Time) predicate.Occurrence
- func NotAvailableAfterLTE(v time.Time) predicate.Occurrence
- func NotAvailableAfterNEQ(v time.Time) predicate.Occurrence
- func NotAvailableAfterNotIn(vs ...time.Time) predicate.Occurrence
- func NotAvailableAfterNotNil() predicate.Occurrence
- func Or(predicates ...predicate.Occurrence) predicate.Occurrence
- func PriceGuest(v int) predicate.Occurrence
- func PriceGuestEQ(v int) predicate.Occurrence
- func PriceGuestGT(v int) predicate.Occurrence
- func PriceGuestGTE(v int) predicate.Occurrence
- func PriceGuestIn(vs ...int) predicate.Occurrence
- func PriceGuestIsNil() predicate.Occurrence
- func PriceGuestLT(v int) predicate.Occurrence
- func PriceGuestLTE(v int) predicate.Occurrence
- func PriceGuestNEQ(v int) predicate.Occurrence
- func PriceGuestNotIn(vs ...int) predicate.Occurrence
- func PriceGuestNotNil() predicate.Occurrence
- func PriceStaff(v int) predicate.Occurrence
- func PriceStaffEQ(v int) predicate.Occurrence
- func PriceStaffGT(v int) predicate.Occurrence
- func PriceStaffGTE(v int) predicate.Occurrence
- func PriceStaffIn(vs ...int) predicate.Occurrence
- func PriceStaffIsNil() predicate.Occurrence
- func PriceStaffLT(v int) predicate.Occurrence
- func PriceStaffLTE(v int) predicate.Occurrence
- func PriceStaffNEQ(v int) predicate.Occurrence
- func PriceStaffNotIn(vs ...int) predicate.Occurrence
- func PriceStaffNotNil() predicate.Occurrence
- func PriceStudent(v int) predicate.Occurrence
- func PriceStudentEQ(v int) predicate.Occurrence
- func PriceStudentGT(v int) predicate.Occurrence
- func PriceStudentGTE(v int) predicate.Occurrence
- func PriceStudentIn(vs ...int) predicate.Occurrence
- func PriceStudentIsNil() predicate.Occurrence
- func PriceStudentLT(v int) predicate.Occurrence
- func PriceStudentLTE(v int) predicate.Occurrence
- func PriceStudentNEQ(v int) predicate.Occurrence
- func PriceStudentNotIn(vs ...int) predicate.Occurrence
- func PriceStudentNotNil() predicate.Occurrence
- func Protein(v int) predicate.Occurrence
- func ProteinEQ(v int) predicate.Occurrence
- func ProteinGT(v int) predicate.Occurrence
- func ProteinGTE(v int) predicate.Occurrence
- func ProteinIn(vs ...int) predicate.Occurrence
- func ProteinIsNil() predicate.Occurrence
- func ProteinLT(v int) predicate.Occurrence
- func ProteinLTE(v int) predicate.Occurrence
- func ProteinNEQ(v int) predicate.Occurrence
- func ProteinNotIn(vs ...int) predicate.Occurrence
- func ProteinNotNil() predicate.Occurrence
- func Salt(v int) predicate.Occurrence
- func SaltEQ(v int) predicate.Occurrence
- func SaltGT(v int) predicate.Occurrence
- func SaltGTE(v int) predicate.Occurrence
- func SaltIn(vs ...int) predicate.Occurrence
- func SaltIsNil() predicate.Occurrence
- func SaltLT(v int) predicate.Occurrence
- func SaltLTE(v int) predicate.Occurrence
- func SaltNEQ(v int) predicate.Occurrence
- func SaltNotIn(vs ...int) predicate.Occurrence
- func SaltNotNil() predicate.Occurrence
- func SaturatedFat(v int) predicate.Occurrence
- func SaturatedFatEQ(v int) predicate.Occurrence
- func SaturatedFatGT(v int) predicate.Occurrence
- func SaturatedFatGTE(v int) predicate.Occurrence
- func SaturatedFatIn(vs ...int) predicate.Occurrence
- func SaturatedFatIsNil() predicate.Occurrence
- func SaturatedFatLT(v int) predicate.Occurrence
- func SaturatedFatLTE(v int) predicate.Occurrence
- func SaturatedFatNEQ(v int) predicate.Occurrence
- func SaturatedFatNotIn(vs ...int) predicate.Occurrence
- func SaturatedFatNotNil() predicate.Occurrence
- func Sugar(v int) predicate.Occurrence
- func SugarEQ(v int) predicate.Occurrence
- func SugarGT(v int) predicate.Occurrence
- func SugarGTE(v int) predicate.Occurrence
- func SugarIn(vs ...int) predicate.Occurrence
- func SugarIsNil() predicate.Occurrence
- func SugarLT(v int) predicate.Occurrence
- func SugarLTE(v int) predicate.Occurrence
- func SugarNEQ(v int) predicate.Occurrence
- func SugarNotIn(vs ...int) predicate.Occurrence
- func SugarNotNil() predicate.Occurrence
- func ValidColumn(column string) bool
- type OrderOption
- func ByCarbohydrates(opts ...sql.OrderTermOption) OrderOption
- func ByDate(opts ...sql.OrderTermOption) OrderOption
- func ByDishField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByFat(opts ...sql.OrderTermOption) OrderOption
- func ByFiber(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByKcal(opts ...sql.OrderTermOption) OrderOption
- func ByKj(opts ...sql.OrderTermOption) OrderOption
- func ByLocationField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByNotAvailableAfter(opts ...sql.OrderTermOption) OrderOption
- func ByPriceGuest(opts ...sql.OrderTermOption) OrderOption
- func ByPriceStaff(opts ...sql.OrderTermOption) OrderOption
- func ByPriceStudent(opts ...sql.OrderTermOption) OrderOption
- func ByProtein(opts ...sql.OrderTermOption) OrderOption
- func ByReviews(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByReviewsCount(opts ...sql.OrderTermOption) OrderOption
- func BySalt(opts ...sql.OrderTermOption) OrderOption
- func BySaturatedFat(opts ...sql.OrderTermOption) OrderOption
- func BySideDishes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySideDishesCount(opts ...sql.OrderTermOption) OrderOption
- func BySugar(opts ...sql.OrderTermOption) OrderOption
- func ByTags(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTagsCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the occurrence type in the database. Label = "occurrence" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldDate holds the string denoting the date field in the database. FieldDate = "date" // FieldKj holds the string denoting the kj field in the database. FieldKj = "kj" // FieldKcal holds the string denoting the kcal field in the database. FieldKcal = "kcal" // FieldFat holds the string denoting the fat field in the database. FieldFat = "fat" // FieldSaturatedFat holds the string denoting the saturated_fat field in the database. FieldSaturatedFat = "saturated_fat" // FieldCarbohydrates holds the string denoting the carbohydrates field in the database. FieldCarbohydrates = "carbohydrates" // FieldSugar holds the string denoting the sugar field in the database. FieldSugar = "sugar" // FieldFiber holds the string denoting the fiber field in the database. FieldFiber = "fiber" // FieldProtein holds the string denoting the protein field in the database. FieldProtein = "protein" // FieldSalt holds the string denoting the salt field in the database. FieldSalt = "salt" // FieldPriceStudent holds the string denoting the price_student field in the database. FieldPriceStudent = "price_student" // FieldPriceStaff holds the string denoting the price_staff field in the database. FieldPriceStaff = "price_staff" // FieldPriceGuest holds the string denoting the price_guest field in the database. FieldPriceGuest = "price_guest" // FieldNotAvailableAfter holds the string denoting the not_available_after field in the database. FieldNotAvailableAfter = "not_available_after" // EdgeLocation holds the string denoting the location edge name in mutations. EdgeLocation = "location" // EdgeDish holds the string denoting the dish edge name in mutations. EdgeDish = "dish" // EdgeTags holds the string denoting the tags edge name in mutations. EdgeTags = "tags" // EdgeSideDishes holds the string denoting the side_dishes edge name in mutations. EdgeSideDishes = "side_dishes" // EdgeReviews holds the string denoting the reviews edge name in mutations. EdgeReviews = "reviews" // TagFieldID holds the string denoting the ID field of the Tag. TagFieldID = "key" // Table holds the table name of the occurrence in the database. Table = "occurrence" // LocationTable is the table that holds the location relation/edge. LocationTable = "occurrence" // LocationInverseTable is the table name for the Location entity. // It exists in this package in order to avoid circular dependency with the "location" package. LocationInverseTable = "location" // LocationColumn is the table column denoting the location relation/edge. LocationColumn = "location" // DishTable is the table that holds the dish relation/edge. DishTable = "occurrence" // 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" // TagsTable is the table that holds the tags relation/edge. The primary key declared below. TagsTable = "occurrence_tags" // TagsInverseTable is the table name for the Tag entity. // It exists in this package in order to avoid circular dependency with the "tag" package. TagsInverseTable = "tag" // SideDishesTable is the table that holds the side_dishes relation/edge. The primary key declared below. SideDishesTable = "occurrence_side_dishes" // SideDishesInverseTable is the table name for the Dish entity. // It exists in this package in order to avoid circular dependency with the "dish" package. SideDishesInverseTable = "dish" // ReviewsTable is the table that holds the reviews relation/edge. ReviewsTable = "review" // ReviewsInverseTable is the table name for the Review entity. // It exists in this package in order to avoid circular dependency with the "review" package. ReviewsInverseTable = "review" // ReviewsColumn is the table column denoting the reviews relation/edge. ReviewsColumn = "occurrence" )
Variables ¶
var ( // TagsPrimaryKey and TagsColumn2 are the table columns denoting the // primary key for the tags relation (M2M). TagsPrimaryKey = []string{"occurrence", "tag"} // SideDishesPrimaryKey and SideDishesColumn2 are the table columns denoting the // primary key for the side_dishes relation (M2M). SideDishesPrimaryKey = []string{"occurrence", "dish"} )
var ( // DefaultDate holds the default value on creation for the "date" field. DefaultDate func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldDate, FieldKj, FieldKcal, FieldFat, FieldSaturatedFat, FieldCarbohydrates, FieldSugar, FieldFiber, FieldProtein, FieldSalt, FieldPriceStudent, FieldPriceStaff, FieldPriceGuest, FieldNotAvailableAfter, }
Columns holds all SQL columns for occurrence fields.
var ForeignKeys = []string{
"dish",
"location",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "occurrence" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.Occurrence) predicate.Occurrence
And groups predicates with the AND operator between them.
func Carbohydrates ¶
func Carbohydrates(v int) predicate.Occurrence
Carbohydrates applies equality check predicate on the "carbohydrates" field. It's identical to CarbohydratesEQ.
func CarbohydratesEQ ¶
func CarbohydratesEQ(v int) predicate.Occurrence
CarbohydratesEQ applies the EQ predicate on the "carbohydrates" field.
func CarbohydratesGT ¶
func CarbohydratesGT(v int) predicate.Occurrence
CarbohydratesGT applies the GT predicate on the "carbohydrates" field.
func CarbohydratesGTE ¶
func CarbohydratesGTE(v int) predicate.Occurrence
CarbohydratesGTE applies the GTE predicate on the "carbohydrates" field.
func CarbohydratesIn ¶
func CarbohydratesIn(vs ...int) predicate.Occurrence
CarbohydratesIn applies the In predicate on the "carbohydrates" field.
func CarbohydratesIsNil ¶
func CarbohydratesIsNil() predicate.Occurrence
CarbohydratesIsNil applies the IsNil predicate on the "carbohydrates" field.
func CarbohydratesLT ¶
func CarbohydratesLT(v int) predicate.Occurrence
CarbohydratesLT applies the LT predicate on the "carbohydrates" field.
func CarbohydratesLTE ¶
func CarbohydratesLTE(v int) predicate.Occurrence
CarbohydratesLTE applies the LTE predicate on the "carbohydrates" field.
func CarbohydratesNEQ ¶
func CarbohydratesNEQ(v int) predicate.Occurrence
CarbohydratesNEQ applies the NEQ predicate on the "carbohydrates" field.
func CarbohydratesNotIn ¶
func CarbohydratesNotIn(vs ...int) predicate.Occurrence
CarbohydratesNotIn applies the NotIn predicate on the "carbohydrates" field.
func CarbohydratesNotNil ¶
func CarbohydratesNotNil() predicate.Occurrence
CarbohydratesNotNil applies the NotNil predicate on the "carbohydrates" field.
func Date ¶
func Date(v time.Time) predicate.Occurrence
Date applies equality check predicate on the "date" field. It's identical to DateEQ.
func DateEQ ¶
func DateEQ(v time.Time) predicate.Occurrence
DateEQ applies the EQ predicate on the "date" field.
func DateGT ¶
func DateGT(v time.Time) predicate.Occurrence
DateGT applies the GT predicate on the "date" field.
func DateGTE ¶
func DateGTE(v time.Time) predicate.Occurrence
DateGTE applies the GTE predicate on the "date" field.
func DateIn ¶
func DateIn(vs ...time.Time) predicate.Occurrence
DateIn applies the In predicate on the "date" field.
func DateLT ¶
func DateLT(v time.Time) predicate.Occurrence
DateLT applies the LT predicate on the "date" field.
func DateLTE ¶
func DateLTE(v time.Time) predicate.Occurrence
DateLTE applies the LTE predicate on the "date" field.
func DateNEQ ¶
func DateNEQ(v time.Time) predicate.Occurrence
DateNEQ applies the NEQ predicate on the "date" field.
func DateNotIn ¶
func DateNotIn(vs ...time.Time) predicate.Occurrence
DateNotIn applies the NotIn predicate on the "date" field.
func Fat ¶
func Fat(v int) predicate.Occurrence
Fat applies equality check predicate on the "fat" field. It's identical to FatEQ.
func FatEQ ¶
func FatEQ(v int) predicate.Occurrence
FatEQ applies the EQ predicate on the "fat" field.
func FatGT ¶
func FatGT(v int) predicate.Occurrence
FatGT applies the GT predicate on the "fat" field.
func FatGTE ¶
func FatGTE(v int) predicate.Occurrence
FatGTE applies the GTE predicate on the "fat" field.
func FatIn ¶
func FatIn(vs ...int) predicate.Occurrence
FatIn applies the In predicate on the "fat" field.
func FatIsNil ¶
func FatIsNil() predicate.Occurrence
FatIsNil applies the IsNil predicate on the "fat" field.
func FatLT ¶
func FatLT(v int) predicate.Occurrence
FatLT applies the LT predicate on the "fat" field.
func FatLTE ¶
func FatLTE(v int) predicate.Occurrence
FatLTE applies the LTE predicate on the "fat" field.
func FatNEQ ¶
func FatNEQ(v int) predicate.Occurrence
FatNEQ applies the NEQ predicate on the "fat" field.
func FatNotIn ¶
func FatNotIn(vs ...int) predicate.Occurrence
FatNotIn applies the NotIn predicate on the "fat" field.
func FatNotNil ¶
func FatNotNil() predicate.Occurrence
FatNotNil applies the NotNil predicate on the "fat" field.
func Fiber ¶
func Fiber(v int) predicate.Occurrence
Fiber applies equality check predicate on the "fiber" field. It's identical to FiberEQ.
func FiberEQ ¶
func FiberEQ(v int) predicate.Occurrence
FiberEQ applies the EQ predicate on the "fiber" field.
func FiberGT ¶
func FiberGT(v int) predicate.Occurrence
FiberGT applies the GT predicate on the "fiber" field.
func FiberGTE ¶
func FiberGTE(v int) predicate.Occurrence
FiberGTE applies the GTE predicate on the "fiber" field.
func FiberIn ¶
func FiberIn(vs ...int) predicate.Occurrence
FiberIn applies the In predicate on the "fiber" field.
func FiberIsNil ¶
func FiberIsNil() predicate.Occurrence
FiberIsNil applies the IsNil predicate on the "fiber" field.
func FiberLT ¶
func FiberLT(v int) predicate.Occurrence
FiberLT applies the LT predicate on the "fiber" field.
func FiberLTE ¶
func FiberLTE(v int) predicate.Occurrence
FiberLTE applies the LTE predicate on the "fiber" field.
func FiberNEQ ¶
func FiberNEQ(v int) predicate.Occurrence
FiberNEQ applies the NEQ predicate on the "fiber" field.
func FiberNotIn ¶
func FiberNotIn(vs ...int) predicate.Occurrence
FiberNotIn applies the NotIn predicate on the "fiber" field.
func FiberNotNil ¶
func FiberNotNil() predicate.Occurrence
FiberNotNil applies the NotNil predicate on the "fiber" field.
func HasDish ¶
func HasDish() predicate.Occurrence
HasDish applies the HasEdge predicate on the "dish" edge.
func HasDishWith ¶
func HasDishWith(preds ...predicate.Dish) predicate.Occurrence
HasDishWith applies the HasEdge predicate on the "dish" edge with a given conditions (other predicates).
func HasLocation ¶
func HasLocation() predicate.Occurrence
HasLocation applies the HasEdge predicate on the "location" edge.
func HasLocationWith ¶
func HasLocationWith(preds ...predicate.Location) predicate.Occurrence
HasLocationWith applies the HasEdge predicate on the "location" edge with a given conditions (other predicates).
func HasReviews ¶
func HasReviews() predicate.Occurrence
HasReviews applies the HasEdge predicate on the "reviews" edge.
func HasReviewsWith ¶
func HasReviewsWith(preds ...predicate.Review) predicate.Occurrence
HasReviewsWith applies the HasEdge predicate on the "reviews" edge with a given conditions (other predicates).
func HasSideDishes ¶
func HasSideDishes() predicate.Occurrence
HasSideDishes applies the HasEdge predicate on the "side_dishes" edge.
func HasSideDishesWith ¶
func HasSideDishesWith(preds ...predicate.Dish) predicate.Occurrence
HasSideDishesWith applies the HasEdge predicate on the "side_dishes" edge with a given conditions (other predicates).
func HasTags ¶
func HasTags() predicate.Occurrence
HasTags applies the HasEdge predicate on the "tags" edge.
func HasTagsWith ¶
func HasTagsWith(preds ...predicate.Tag) predicate.Occurrence
HasTagsWith applies the HasEdge predicate on the "tags" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.Occurrence
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.Occurrence
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.Occurrence
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.Occurrence
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.Occurrence
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.Occurrence
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.Occurrence
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.Occurrence
IDNotIn applies the NotIn predicate on the ID field.
func Kcal ¶
func Kcal(v int) predicate.Occurrence
Kcal applies equality check predicate on the "kcal" field. It's identical to KcalEQ.
func KcalEQ ¶
func KcalEQ(v int) predicate.Occurrence
KcalEQ applies the EQ predicate on the "kcal" field.
func KcalGT ¶
func KcalGT(v int) predicate.Occurrence
KcalGT applies the GT predicate on the "kcal" field.
func KcalGTE ¶
func KcalGTE(v int) predicate.Occurrence
KcalGTE applies the GTE predicate on the "kcal" field.
func KcalIn ¶
func KcalIn(vs ...int) predicate.Occurrence
KcalIn applies the In predicate on the "kcal" field.
func KcalIsNil ¶
func KcalIsNil() predicate.Occurrence
KcalIsNil applies the IsNil predicate on the "kcal" field.
func KcalLT ¶
func KcalLT(v int) predicate.Occurrence
KcalLT applies the LT predicate on the "kcal" field.
func KcalLTE ¶
func KcalLTE(v int) predicate.Occurrence
KcalLTE applies the LTE predicate on the "kcal" field.
func KcalNEQ ¶
func KcalNEQ(v int) predicate.Occurrence
KcalNEQ applies the NEQ predicate on the "kcal" field.
func KcalNotIn ¶
func KcalNotIn(vs ...int) predicate.Occurrence
KcalNotIn applies the NotIn predicate on the "kcal" field.
func KcalNotNil ¶
func KcalNotNil() predicate.Occurrence
KcalNotNil applies the NotNil predicate on the "kcal" field.
func Kj ¶
func Kj(v int) predicate.Occurrence
Kj applies equality check predicate on the "kj" field. It's identical to KjEQ.
func KjGTE ¶
func KjGTE(v int) predicate.Occurrence
KjGTE applies the GTE predicate on the "kj" field.
func KjIn ¶
func KjIn(vs ...int) predicate.Occurrence
KjIn applies the In predicate on the "kj" field.
func KjIsNil ¶
func KjIsNil() predicate.Occurrence
KjIsNil applies the IsNil predicate on the "kj" field.
func KjLTE ¶
func KjLTE(v int) predicate.Occurrence
KjLTE applies the LTE predicate on the "kj" field.
func KjNEQ ¶
func KjNEQ(v int) predicate.Occurrence
KjNEQ applies the NEQ predicate on the "kj" field.
func KjNotIn ¶
func KjNotIn(vs ...int) predicate.Occurrence
KjNotIn applies the NotIn predicate on the "kj" field.
func KjNotNil ¶
func KjNotNil() predicate.Occurrence
KjNotNil applies the NotNil predicate on the "kj" field.
func Not ¶
func Not(p predicate.Occurrence) predicate.Occurrence
Not applies the not operator on the given predicate.
func NotAvailableAfter ¶ added in v0.7.0
func NotAvailableAfter(v time.Time) predicate.Occurrence
NotAvailableAfter applies equality check predicate on the "not_available_after" field. It's identical to NotAvailableAfterEQ.
func NotAvailableAfterEQ ¶ added in v0.7.0
func NotAvailableAfterEQ(v time.Time) predicate.Occurrence
NotAvailableAfterEQ applies the EQ predicate on the "not_available_after" field.
func NotAvailableAfterGT ¶ added in v0.7.0
func NotAvailableAfterGT(v time.Time) predicate.Occurrence
NotAvailableAfterGT applies the GT predicate on the "not_available_after" field.
func NotAvailableAfterGTE ¶ added in v0.7.0
func NotAvailableAfterGTE(v time.Time) predicate.Occurrence
NotAvailableAfterGTE applies the GTE predicate on the "not_available_after" field.
func NotAvailableAfterIn ¶ added in v0.7.0
func NotAvailableAfterIn(vs ...time.Time) predicate.Occurrence
NotAvailableAfterIn applies the In predicate on the "not_available_after" field.
func NotAvailableAfterIsNil ¶ added in v0.7.0
func NotAvailableAfterIsNil() predicate.Occurrence
NotAvailableAfterIsNil applies the IsNil predicate on the "not_available_after" field.
func NotAvailableAfterLT ¶ added in v0.7.0
func NotAvailableAfterLT(v time.Time) predicate.Occurrence
NotAvailableAfterLT applies the LT predicate on the "not_available_after" field.
func NotAvailableAfterLTE ¶ added in v0.7.0
func NotAvailableAfterLTE(v time.Time) predicate.Occurrence
NotAvailableAfterLTE applies the LTE predicate on the "not_available_after" field.
func NotAvailableAfterNEQ ¶ added in v0.7.0
func NotAvailableAfterNEQ(v time.Time) predicate.Occurrence
NotAvailableAfterNEQ applies the NEQ predicate on the "not_available_after" field.
func NotAvailableAfterNotIn ¶ added in v0.7.0
func NotAvailableAfterNotIn(vs ...time.Time) predicate.Occurrence
NotAvailableAfterNotIn applies the NotIn predicate on the "not_available_after" field.
func NotAvailableAfterNotNil ¶ added in v0.7.0
func NotAvailableAfterNotNil() predicate.Occurrence
NotAvailableAfterNotNil applies the NotNil predicate on the "not_available_after" field.
func Or ¶
func Or(predicates ...predicate.Occurrence) predicate.Occurrence
Or groups predicates with the OR operator between them.
func PriceGuest ¶
func PriceGuest(v int) predicate.Occurrence
PriceGuest applies equality check predicate on the "price_guest" field. It's identical to PriceGuestEQ.
func PriceGuestEQ ¶
func PriceGuestEQ(v int) predicate.Occurrence
PriceGuestEQ applies the EQ predicate on the "price_guest" field.
func PriceGuestGT ¶
func PriceGuestGT(v int) predicate.Occurrence
PriceGuestGT applies the GT predicate on the "price_guest" field.
func PriceGuestGTE ¶
func PriceGuestGTE(v int) predicate.Occurrence
PriceGuestGTE applies the GTE predicate on the "price_guest" field.
func PriceGuestIn ¶
func PriceGuestIn(vs ...int) predicate.Occurrence
PriceGuestIn applies the In predicate on the "price_guest" field.
func PriceGuestIsNil ¶
func PriceGuestIsNil() predicate.Occurrence
PriceGuestIsNil applies the IsNil predicate on the "price_guest" field.
func PriceGuestLT ¶
func PriceGuestLT(v int) predicate.Occurrence
PriceGuestLT applies the LT predicate on the "price_guest" field.
func PriceGuestLTE ¶
func PriceGuestLTE(v int) predicate.Occurrence
PriceGuestLTE applies the LTE predicate on the "price_guest" field.
func PriceGuestNEQ ¶
func PriceGuestNEQ(v int) predicate.Occurrence
PriceGuestNEQ applies the NEQ predicate on the "price_guest" field.
func PriceGuestNotIn ¶
func PriceGuestNotIn(vs ...int) predicate.Occurrence
PriceGuestNotIn applies the NotIn predicate on the "price_guest" field.
func PriceGuestNotNil ¶
func PriceGuestNotNil() predicate.Occurrence
PriceGuestNotNil applies the NotNil predicate on the "price_guest" field.
func PriceStaff ¶
func PriceStaff(v int) predicate.Occurrence
PriceStaff applies equality check predicate on the "price_staff" field. It's identical to PriceStaffEQ.
func PriceStaffEQ ¶
func PriceStaffEQ(v int) predicate.Occurrence
PriceStaffEQ applies the EQ predicate on the "price_staff" field.
func PriceStaffGT ¶
func PriceStaffGT(v int) predicate.Occurrence
PriceStaffGT applies the GT predicate on the "price_staff" field.
func PriceStaffGTE ¶
func PriceStaffGTE(v int) predicate.Occurrence
PriceStaffGTE applies the GTE predicate on the "price_staff" field.
func PriceStaffIn ¶
func PriceStaffIn(vs ...int) predicate.Occurrence
PriceStaffIn applies the In predicate on the "price_staff" field.
func PriceStaffIsNil ¶
func PriceStaffIsNil() predicate.Occurrence
PriceStaffIsNil applies the IsNil predicate on the "price_staff" field.
func PriceStaffLT ¶
func PriceStaffLT(v int) predicate.Occurrence
PriceStaffLT applies the LT predicate on the "price_staff" field.
func PriceStaffLTE ¶
func PriceStaffLTE(v int) predicate.Occurrence
PriceStaffLTE applies the LTE predicate on the "price_staff" field.
func PriceStaffNEQ ¶
func PriceStaffNEQ(v int) predicate.Occurrence
PriceStaffNEQ applies the NEQ predicate on the "price_staff" field.
func PriceStaffNotIn ¶
func PriceStaffNotIn(vs ...int) predicate.Occurrence
PriceStaffNotIn applies the NotIn predicate on the "price_staff" field.
func PriceStaffNotNil ¶
func PriceStaffNotNil() predicate.Occurrence
PriceStaffNotNil applies the NotNil predicate on the "price_staff" field.
func PriceStudent ¶
func PriceStudent(v int) predicate.Occurrence
PriceStudent applies equality check predicate on the "price_student" field. It's identical to PriceStudentEQ.
func PriceStudentEQ ¶
func PriceStudentEQ(v int) predicate.Occurrence
PriceStudentEQ applies the EQ predicate on the "price_student" field.
func PriceStudentGT ¶
func PriceStudentGT(v int) predicate.Occurrence
PriceStudentGT applies the GT predicate on the "price_student" field.
func PriceStudentGTE ¶
func PriceStudentGTE(v int) predicate.Occurrence
PriceStudentGTE applies the GTE predicate on the "price_student" field.
func PriceStudentIn ¶
func PriceStudentIn(vs ...int) predicate.Occurrence
PriceStudentIn applies the In predicate on the "price_student" field.
func PriceStudentIsNil ¶
func PriceStudentIsNil() predicate.Occurrence
PriceStudentIsNil applies the IsNil predicate on the "price_student" field.
func PriceStudentLT ¶
func PriceStudentLT(v int) predicate.Occurrence
PriceStudentLT applies the LT predicate on the "price_student" field.
func PriceStudentLTE ¶
func PriceStudentLTE(v int) predicate.Occurrence
PriceStudentLTE applies the LTE predicate on the "price_student" field.
func PriceStudentNEQ ¶
func PriceStudentNEQ(v int) predicate.Occurrence
PriceStudentNEQ applies the NEQ predicate on the "price_student" field.
func PriceStudentNotIn ¶
func PriceStudentNotIn(vs ...int) predicate.Occurrence
PriceStudentNotIn applies the NotIn predicate on the "price_student" field.
func PriceStudentNotNil ¶
func PriceStudentNotNil() predicate.Occurrence
PriceStudentNotNil applies the NotNil predicate on the "price_student" field.
func Protein ¶
func Protein(v int) predicate.Occurrence
Protein applies equality check predicate on the "protein" field. It's identical to ProteinEQ.
func ProteinEQ ¶
func ProteinEQ(v int) predicate.Occurrence
ProteinEQ applies the EQ predicate on the "protein" field.
func ProteinGT ¶
func ProteinGT(v int) predicate.Occurrence
ProteinGT applies the GT predicate on the "protein" field.
func ProteinGTE ¶
func ProteinGTE(v int) predicate.Occurrence
ProteinGTE applies the GTE predicate on the "protein" field.
func ProteinIn ¶
func ProteinIn(vs ...int) predicate.Occurrence
ProteinIn applies the In predicate on the "protein" field.
func ProteinIsNil ¶
func ProteinIsNil() predicate.Occurrence
ProteinIsNil applies the IsNil predicate on the "protein" field.
func ProteinLT ¶
func ProteinLT(v int) predicate.Occurrence
ProteinLT applies the LT predicate on the "protein" field.
func ProteinLTE ¶
func ProteinLTE(v int) predicate.Occurrence
ProteinLTE applies the LTE predicate on the "protein" field.
func ProteinNEQ ¶
func ProteinNEQ(v int) predicate.Occurrence
ProteinNEQ applies the NEQ predicate on the "protein" field.
func ProteinNotIn ¶
func ProteinNotIn(vs ...int) predicate.Occurrence
ProteinNotIn applies the NotIn predicate on the "protein" field.
func ProteinNotNil ¶
func ProteinNotNil() predicate.Occurrence
ProteinNotNil applies the NotNil predicate on the "protein" field.
func Salt ¶
func Salt(v int) predicate.Occurrence
Salt applies equality check predicate on the "salt" field. It's identical to SaltEQ.
func SaltEQ ¶
func SaltEQ(v int) predicate.Occurrence
SaltEQ applies the EQ predicate on the "salt" field.
func SaltGT ¶
func SaltGT(v int) predicate.Occurrence
SaltGT applies the GT predicate on the "salt" field.
func SaltGTE ¶
func SaltGTE(v int) predicate.Occurrence
SaltGTE applies the GTE predicate on the "salt" field.
func SaltIn ¶
func SaltIn(vs ...int) predicate.Occurrence
SaltIn applies the In predicate on the "salt" field.
func SaltIsNil ¶
func SaltIsNil() predicate.Occurrence
SaltIsNil applies the IsNil predicate on the "salt" field.
func SaltLT ¶
func SaltLT(v int) predicate.Occurrence
SaltLT applies the LT predicate on the "salt" field.
func SaltLTE ¶
func SaltLTE(v int) predicate.Occurrence
SaltLTE applies the LTE predicate on the "salt" field.
func SaltNEQ ¶
func SaltNEQ(v int) predicate.Occurrence
SaltNEQ applies the NEQ predicate on the "salt" field.
func SaltNotIn ¶
func SaltNotIn(vs ...int) predicate.Occurrence
SaltNotIn applies the NotIn predicate on the "salt" field.
func SaltNotNil ¶
func SaltNotNil() predicate.Occurrence
SaltNotNil applies the NotNil predicate on the "salt" field.
func SaturatedFat ¶
func SaturatedFat(v int) predicate.Occurrence
SaturatedFat applies equality check predicate on the "saturated_fat" field. It's identical to SaturatedFatEQ.
func SaturatedFatEQ ¶
func SaturatedFatEQ(v int) predicate.Occurrence
SaturatedFatEQ applies the EQ predicate on the "saturated_fat" field.
func SaturatedFatGT ¶
func SaturatedFatGT(v int) predicate.Occurrence
SaturatedFatGT applies the GT predicate on the "saturated_fat" field.
func SaturatedFatGTE ¶
func SaturatedFatGTE(v int) predicate.Occurrence
SaturatedFatGTE applies the GTE predicate on the "saturated_fat" field.
func SaturatedFatIn ¶
func SaturatedFatIn(vs ...int) predicate.Occurrence
SaturatedFatIn applies the In predicate on the "saturated_fat" field.
func SaturatedFatIsNil ¶
func SaturatedFatIsNil() predicate.Occurrence
SaturatedFatIsNil applies the IsNil predicate on the "saturated_fat" field.
func SaturatedFatLT ¶
func SaturatedFatLT(v int) predicate.Occurrence
SaturatedFatLT applies the LT predicate on the "saturated_fat" field.
func SaturatedFatLTE ¶
func SaturatedFatLTE(v int) predicate.Occurrence
SaturatedFatLTE applies the LTE predicate on the "saturated_fat" field.
func SaturatedFatNEQ ¶
func SaturatedFatNEQ(v int) predicate.Occurrence
SaturatedFatNEQ applies the NEQ predicate on the "saturated_fat" field.
func SaturatedFatNotIn ¶
func SaturatedFatNotIn(vs ...int) predicate.Occurrence
SaturatedFatNotIn applies the NotIn predicate on the "saturated_fat" field.
func SaturatedFatNotNil ¶
func SaturatedFatNotNil() predicate.Occurrence
SaturatedFatNotNil applies the NotNil predicate on the "saturated_fat" field.
func Sugar ¶
func Sugar(v int) predicate.Occurrence
Sugar applies equality check predicate on the "sugar" field. It's identical to SugarEQ.
func SugarEQ ¶
func SugarEQ(v int) predicate.Occurrence
SugarEQ applies the EQ predicate on the "sugar" field.
func SugarGT ¶
func SugarGT(v int) predicate.Occurrence
SugarGT applies the GT predicate on the "sugar" field.
func SugarGTE ¶
func SugarGTE(v int) predicate.Occurrence
SugarGTE applies the GTE predicate on the "sugar" field.
func SugarIn ¶
func SugarIn(vs ...int) predicate.Occurrence
SugarIn applies the In predicate on the "sugar" field.
func SugarIsNil ¶
func SugarIsNil() predicate.Occurrence
SugarIsNil applies the IsNil predicate on the "sugar" field.
func SugarLT ¶
func SugarLT(v int) predicate.Occurrence
SugarLT applies the LT predicate on the "sugar" field.
func SugarLTE ¶
func SugarLTE(v int) predicate.Occurrence
SugarLTE applies the LTE predicate on the "sugar" field.
func SugarNEQ ¶
func SugarNEQ(v int) predicate.Occurrence
SugarNEQ applies the NEQ predicate on the "sugar" field.
func SugarNotIn ¶
func SugarNotIn(vs ...int) predicate.Occurrence
SugarNotIn applies the NotIn predicate on the "sugar" field.
func SugarNotNil ¶
func SugarNotNil() predicate.Occurrence
SugarNotNil applies the NotNil predicate on the "sugar" 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 Occurrence queries.
func ByCarbohydrates ¶
func ByCarbohydrates(opts ...sql.OrderTermOption) OrderOption
ByCarbohydrates orders the results by the carbohydrates field.
func ByDate ¶
func ByDate(opts ...sql.OrderTermOption) OrderOption
ByDate orders the results by the date field.
func ByDishField ¶
func ByDishField(field string, opts ...sql.OrderTermOption) OrderOption
ByDishField orders the results by dish field.
func ByFat ¶
func ByFat(opts ...sql.OrderTermOption) OrderOption
ByFat orders the results by the fat field.
func ByFiber ¶
func ByFiber(opts ...sql.OrderTermOption) OrderOption
ByFiber orders the results by the fiber field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByKcal ¶
func ByKcal(opts ...sql.OrderTermOption) OrderOption
ByKcal orders the results by the kcal field.
func ByKj ¶
func ByKj(opts ...sql.OrderTermOption) OrderOption
ByKj orders the results by the kj field.
func ByLocationField ¶
func ByLocationField(field string, opts ...sql.OrderTermOption) OrderOption
ByLocationField orders the results by location field.
func ByNotAvailableAfter ¶ added in v0.7.0
func ByNotAvailableAfter(opts ...sql.OrderTermOption) OrderOption
ByNotAvailableAfter orders the results by the not_available_after field.
func ByPriceGuest ¶
func ByPriceGuest(opts ...sql.OrderTermOption) OrderOption
ByPriceGuest orders the results by the price_guest field.
func ByPriceStaff ¶
func ByPriceStaff(opts ...sql.OrderTermOption) OrderOption
ByPriceStaff orders the results by the price_staff field.
func ByPriceStudent ¶
func ByPriceStudent(opts ...sql.OrderTermOption) OrderOption
ByPriceStudent orders the results by the price_student field.
func ByProtein ¶
func ByProtein(opts ...sql.OrderTermOption) OrderOption
ByProtein orders the results by the protein field.
func ByReviews ¶
func ByReviews(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByReviews orders the results by reviews terms.
func ByReviewsCount ¶
func ByReviewsCount(opts ...sql.OrderTermOption) OrderOption
ByReviewsCount orders the results by reviews count.
func BySalt ¶
func BySalt(opts ...sql.OrderTermOption) OrderOption
BySalt orders the results by the salt field.
func BySaturatedFat ¶
func BySaturatedFat(opts ...sql.OrderTermOption) OrderOption
BySaturatedFat orders the results by the saturated_fat field.
func BySideDishes ¶
func BySideDishes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
BySideDishes orders the results by side_dishes terms.
func BySideDishesCount ¶
func BySideDishesCount(opts ...sql.OrderTermOption) OrderOption
BySideDishesCount orders the results by side_dishes count.
func BySugar ¶
func BySugar(opts ...sql.OrderTermOption) OrderOption
BySugar orders the results by the sugar field.
func ByTags ¶
func ByTags(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTags orders the results by tags terms.
func ByTagsCount ¶
func ByTagsCount(opts ...sql.OrderTermOption) OrderOption
ByTagsCount orders the results by tags count.