Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Meal) predicate.Meal
- func CreatedAt(v time.Time) predicate.Meal
- func CreatedAtEQ(v time.Time) predicate.Meal
- func CreatedAtGT(v time.Time) predicate.Meal
- func CreatedAtGTE(v time.Time) predicate.Meal
- func CreatedAtIn(vs ...time.Time) predicate.Meal
- func CreatedAtLT(v time.Time) predicate.Meal
- func CreatedAtLTE(v time.Time) predicate.Meal
- func CreatedAtNEQ(v time.Time) predicate.Meal
- func CreatedAtNotIn(vs ...time.Time) predicate.Meal
- func HasUser() predicate.Meal
- func HasUserWith(preds ...predicate.User) predicate.Meal
- func ID(id int) predicate.Meal
- func IDEQ(id int) predicate.Meal
- func IDGT(id int) predicate.Meal
- func IDGTE(id int) predicate.Meal
- func IDIn(ids ...int) predicate.Meal
- func IDLT(id int) predicate.Meal
- func IDLTE(id int) predicate.Meal
- func IDNEQ(id int) predicate.Meal
- func IDNotIn(ids ...int) predicate.Meal
- func ImageURL(v string) predicate.Meal
- func ImageURLContains(v string) predicate.Meal
- func ImageURLContainsFold(v string) predicate.Meal
- func ImageURLEQ(v string) predicate.Meal
- func ImageURLEqualFold(v string) predicate.Meal
- func ImageURLGT(v string) predicate.Meal
- func ImageURLGTE(v string) predicate.Meal
- func ImageURLHasPrefix(v string) predicate.Meal
- func ImageURLHasSuffix(v string) predicate.Meal
- func ImageURLIn(vs ...string) predicate.Meal
- func ImageURLLT(v string) predicate.Meal
- func ImageURLLTE(v string) predicate.Meal
- func ImageURLNEQ(v string) predicate.Meal
- func ImageURLNotIn(vs ...string) predicate.Meal
- func MealType(v string) predicate.Meal
- func MealTypeContains(v string) predicate.Meal
- func MealTypeContainsFold(v string) predicate.Meal
- func MealTypeEQ(v string) predicate.Meal
- func MealTypeEqualFold(v string) predicate.Meal
- func MealTypeGT(v string) predicate.Meal
- func MealTypeGTE(v string) predicate.Meal
- func MealTypeHasPrefix(v string) predicate.Meal
- func MealTypeHasSuffix(v string) predicate.Meal
- func MealTypeIn(vs ...string) predicate.Meal
- func MealTypeLT(v string) predicate.Meal
- func MealTypeLTE(v string) predicate.Meal
- func MealTypeNEQ(v string) predicate.Meal
- func MealTypeNotIn(vs ...string) predicate.Meal
- func Not(p predicate.Meal) predicate.Meal
- func Or(predicates ...predicate.Meal) predicate.Meal
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the meal type in the database. Label = "meal" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldMealType holds the string denoting the meal_type field in the database. FieldMealType = "meal_type" // FieldImageURL holds the string denoting the image_url field in the database. FieldImageURL = "image_url" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the meal in the database. Table = "meals" // UserTable is the table that holds the user relation/edge. UserTable = "meals" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_meals" )
Variables ¶
var ( // MealTypeValidator is a validator for the "meal_type" field. It is called by the builders before save. MealTypeValidator func(string) error // DefaultImageURL holds the default value on creation for the "image_url" field. DefaultImageURL string // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt time.Time )
var Columns = []string{ FieldID, FieldMealType, FieldImageURL, FieldCreatedAt, }
Columns holds all SQL columns for meal fields.
var ForeignKeys = []string{
"user_meals",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "meals" table and are not defined as standalone fields in the schema.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func ImageURL ¶
ImageURL applies equality check predicate on the "image_url" field. It's identical to ImageURLEQ.
func ImageURLContains ¶
ImageURLContains applies the Contains predicate on the "image_url" field.
func ImageURLContainsFold ¶
ImageURLContainsFold applies the ContainsFold predicate on the "image_url" field.
func ImageURLEQ ¶
ImageURLEQ applies the EQ predicate on the "image_url" field.
func ImageURLEqualFold ¶
ImageURLEqualFold applies the EqualFold predicate on the "image_url" field.
func ImageURLGT ¶
ImageURLGT applies the GT predicate on the "image_url" field.
func ImageURLGTE ¶
ImageURLGTE applies the GTE predicate on the "image_url" field.
func ImageURLHasPrefix ¶
ImageURLHasPrefix applies the HasPrefix predicate on the "image_url" field.
func ImageURLHasSuffix ¶
ImageURLHasSuffix applies the HasSuffix predicate on the "image_url" field.
func ImageURLIn ¶
ImageURLIn applies the In predicate on the "image_url" field.
func ImageURLLT ¶
ImageURLLT applies the LT predicate on the "image_url" field.
func ImageURLLTE ¶
ImageURLLTE applies the LTE predicate on the "image_url" field.
func ImageURLNEQ ¶
ImageURLNEQ applies the NEQ predicate on the "image_url" field.
func ImageURLNotIn ¶
ImageURLNotIn applies the NotIn predicate on the "image_url" field.
func MealType ¶
MealType applies equality check predicate on the "meal_type" field. It's identical to MealTypeEQ.
func MealTypeContains ¶
MealTypeContains applies the Contains predicate on the "meal_type" field.
func MealTypeContainsFold ¶
MealTypeContainsFold applies the ContainsFold predicate on the "meal_type" field.
func MealTypeEQ ¶
MealTypeEQ applies the EQ predicate on the "meal_type" field.
func MealTypeEqualFold ¶
MealTypeEqualFold applies the EqualFold predicate on the "meal_type" field.
func MealTypeGT ¶
MealTypeGT applies the GT predicate on the "meal_type" field.
func MealTypeGTE ¶
MealTypeGTE applies the GTE predicate on the "meal_type" field.
func MealTypeHasPrefix ¶
MealTypeHasPrefix applies the HasPrefix predicate on the "meal_type" field.
func MealTypeHasSuffix ¶
MealTypeHasSuffix applies the HasSuffix predicate on the "meal_type" field.
func MealTypeIn ¶
MealTypeIn applies the In predicate on the "meal_type" field.
func MealTypeLT ¶
MealTypeLT applies the LT predicate on the "meal_type" field.
func MealTypeLTE ¶
MealTypeLTE applies the LTE predicate on the "meal_type" field.
func MealTypeNEQ ¶
MealTypeNEQ applies the NEQ predicate on the "meal_type" field.
func MealTypeNotIn ¶
MealTypeNotIn applies the NotIn predicate on the "meal_type" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.