Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Pizza) predicate.Pizza
- func CreateTime(v time.Time) predicate.Pizza
- func CreateTimeEQ(v time.Time) predicate.Pizza
- func CreateTimeGT(v time.Time) predicate.Pizza
- func CreateTimeGTE(v time.Time) predicate.Pizza
- func CreateTimeIn(vs ...time.Time) predicate.Pizza
- func CreateTimeLT(v time.Time) predicate.Pizza
- func CreateTimeLTE(v time.Time) predicate.Pizza
- func CreateTimeNEQ(v time.Time) predicate.Pizza
- func CreateTimeNotIn(vs ...time.Time) predicate.Pizza
- func Description(v string) predicate.Pizza
- func DescriptionContains(v string) predicate.Pizza
- func DescriptionContainsFold(v string) predicate.Pizza
- func DescriptionEQ(v string) predicate.Pizza
- func DescriptionEqualFold(v string) predicate.Pizza
- func DescriptionGT(v string) predicate.Pizza
- func DescriptionGTE(v string) predicate.Pizza
- func DescriptionHasPrefix(v string) predicate.Pizza
- func DescriptionHasSuffix(v string) predicate.Pizza
- func DescriptionIn(vs ...string) predicate.Pizza
- func DescriptionIsNil() predicate.Pizza
- func DescriptionLT(v string) predicate.Pizza
- func DescriptionLTE(v string) predicate.Pizza
- func DescriptionNEQ(v string) predicate.Pizza
- func DescriptionNotIn(vs ...string) predicate.Pizza
- func DescriptionNotNil() predicate.Pizza
- func DoughEQ(v Dough) predicate.Pizza
- func DoughIn(vs ...Dough) predicate.Pizza
- func DoughNEQ(v Dough) predicate.Pizza
- func DoughNotIn(vs ...Dough) predicate.Pizza
- func DoughValidator(d Dough) error
- func ID(id int) predicate.Pizza
- func IDEQ(id int) predicate.Pizza
- func IDGT(id int) predicate.Pizza
- func IDGTE(id int) predicate.Pizza
- func IDIn(ids ...int) predicate.Pizza
- func IDLT(id int) predicate.Pizza
- func IDLTE(id int) predicate.Pizza
- func IDNEQ(id int) predicate.Pizza
- func IDNotIn(ids ...int) predicate.Pizza
- func Not(p predicate.Pizza) predicate.Pizza
- func Or(predicates ...predicate.Pizza) predicate.Pizza
- func Price(v int64) predicate.Pizza
- func PriceEQ(v int64) predicate.Pizza
- func PriceGT(v int64) predicate.Pizza
- func PriceGTE(v int64) predicate.Pizza
- func PriceIn(vs ...int64) predicate.Pizza
- func PriceLT(v int64) predicate.Pizza
- func PriceLTE(v int64) predicate.Pizza
- func PriceNEQ(v int64) predicate.Pizza
- func PriceNotIn(vs ...int64) predicate.Pizza
- func Title(v string) predicate.Pizza
- func TitleContains(v string) predicate.Pizza
- func TitleContainsFold(v string) predicate.Pizza
- func TitleEQ(v string) predicate.Pizza
- func TitleEqualFold(v string) predicate.Pizza
- func TitleGT(v string) predicate.Pizza
- func TitleGTE(v string) predicate.Pizza
- func TitleHasPrefix(v string) predicate.Pizza
- func TitleHasSuffix(v string) predicate.Pizza
- func TitleIn(vs ...string) predicate.Pizza
- func TitleLT(v string) predicate.Pizza
- func TitleLTE(v string) predicate.Pizza
- func TitleNEQ(v string) predicate.Pizza
- func TitleNotIn(vs ...string) predicate.Pizza
- func UpdateTime(v time.Time) predicate.Pizza
- func UpdateTimeEQ(v time.Time) predicate.Pizza
- func UpdateTimeGT(v time.Time) predicate.Pizza
- func UpdateTimeGTE(v time.Time) predicate.Pizza
- func UpdateTimeIn(vs ...time.Time) predicate.Pizza
- func UpdateTimeLT(v time.Time) predicate.Pizza
- func UpdateTimeLTE(v time.Time) predicate.Pizza
- func UpdateTimeNEQ(v time.Time) predicate.Pizza
- func UpdateTimeNotIn(vs ...time.Time) predicate.Pizza
- func ValidColumn(column string) bool
- type Dough
Constants ¶
const ( // Label holds the string label denoting the pizza type in the database. Label = "pizza" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldTitle holds the string denoting the title field in the database. FieldTitle = "title" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldPrice holds the string denoting the price field in the database. FieldPrice = "price" // FieldDough holds the string denoting the dough field in the database. FieldDough = "dough" // Table holds the table name of the pizza in the database. Table = "pizzas" )
const DefaultDough = DoughThick
DoughThick is the default value of the Dough enum.
Variables ¶
var ( // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time // TitleValidator is a validator for the "title" field. It is called by the builders before save. TitleValidator func(string) error // DescriptionValidator is a validator for the "description" field. It is called by the builders before save. DescriptionValidator func(string) error // PriceValidator is a validator for the "price" field. It is called by the builders before save. PriceValidator func(int64) error )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldTitle, FieldDescription, FieldPrice, FieldDough, }
Columns holds all SQL columns for pizza fields.
Functions ¶
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func DoughNotIn ¶
DoughNotIn applies the NotIn predicate on the "dough" field.
func DoughValidator ¶
DoughValidator is a validator for the "dough" field enum values. It is called by the builders before save.
func Price ¶
Price applies equality check predicate on the "price" field. It's identical to PriceEQ.
func PriceNotIn ¶
PriceNotIn applies the NotIn predicate on the "price" field.
func Title ¶
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEqualFold ¶
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleHasPrefix ¶
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleNotIn ¶
TitleNotIn applies the NotIn predicate on the "title" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).