meal

package
v0.0.0-...-5d3e565 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for meal fields.

View Source
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 And

func And(predicates ...predicate.Meal) predicate.Meal

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Meal

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Meal

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Meal

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Meal

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Meal

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Meal

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Meal

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Meal

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Meal

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func HasUser

func HasUser() predicate.Meal

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.Meal

HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Meal

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Meal

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Meal

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Meal

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Meal

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Meal

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Meal

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Meal

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Meal

IDNotIn applies the NotIn predicate on the ID field.

func ImageURL

func ImageURL(v string) predicate.Meal

ImageURL applies equality check predicate on the "image_url" field. It's identical to ImageURLEQ.

func ImageURLContains

func ImageURLContains(v string) predicate.Meal

ImageURLContains applies the Contains predicate on the "image_url" field.

func ImageURLContainsFold

func ImageURLContainsFold(v string) predicate.Meal

ImageURLContainsFold applies the ContainsFold predicate on the "image_url" field.

func ImageURLEQ

func ImageURLEQ(v string) predicate.Meal

ImageURLEQ applies the EQ predicate on the "image_url" field.

func ImageURLEqualFold

func ImageURLEqualFold(v string) predicate.Meal

ImageURLEqualFold applies the EqualFold predicate on the "image_url" field.

func ImageURLGT

func ImageURLGT(v string) predicate.Meal

ImageURLGT applies the GT predicate on the "image_url" field.

func ImageURLGTE

func ImageURLGTE(v string) predicate.Meal

ImageURLGTE applies the GTE predicate on the "image_url" field.

func ImageURLHasPrefix

func ImageURLHasPrefix(v string) predicate.Meal

ImageURLHasPrefix applies the HasPrefix predicate on the "image_url" field.

func ImageURLHasSuffix

func ImageURLHasSuffix(v string) predicate.Meal

ImageURLHasSuffix applies the HasSuffix predicate on the "image_url" field.

func ImageURLIn

func ImageURLIn(vs ...string) predicate.Meal

ImageURLIn applies the In predicate on the "image_url" field.

func ImageURLLT

func ImageURLLT(v string) predicate.Meal

ImageURLLT applies the LT predicate on the "image_url" field.

func ImageURLLTE

func ImageURLLTE(v string) predicate.Meal

ImageURLLTE applies the LTE predicate on the "image_url" field.

func ImageURLNEQ

func ImageURLNEQ(v string) predicate.Meal

ImageURLNEQ applies the NEQ predicate on the "image_url" field.

func ImageURLNotIn

func ImageURLNotIn(vs ...string) predicate.Meal

ImageURLNotIn applies the NotIn predicate on the "image_url" field.

func MealType

func MealType(v string) predicate.Meal

MealType applies equality check predicate on the "meal_type" field. It's identical to MealTypeEQ.

func MealTypeContains

func MealTypeContains(v string) predicate.Meal

MealTypeContains applies the Contains predicate on the "meal_type" field.

func MealTypeContainsFold

func MealTypeContainsFold(v string) predicate.Meal

MealTypeContainsFold applies the ContainsFold predicate on the "meal_type" field.

func MealTypeEQ

func MealTypeEQ(v string) predicate.Meal

MealTypeEQ applies the EQ predicate on the "meal_type" field.

func MealTypeEqualFold

func MealTypeEqualFold(v string) predicate.Meal

MealTypeEqualFold applies the EqualFold predicate on the "meal_type" field.

func MealTypeGT

func MealTypeGT(v string) predicate.Meal

MealTypeGT applies the GT predicate on the "meal_type" field.

func MealTypeGTE

func MealTypeGTE(v string) predicate.Meal

MealTypeGTE applies the GTE predicate on the "meal_type" field.

func MealTypeHasPrefix

func MealTypeHasPrefix(v string) predicate.Meal

MealTypeHasPrefix applies the HasPrefix predicate on the "meal_type" field.

func MealTypeHasSuffix

func MealTypeHasSuffix(v string) predicate.Meal

MealTypeHasSuffix applies the HasSuffix predicate on the "meal_type" field.

func MealTypeIn

func MealTypeIn(vs ...string) predicate.Meal

MealTypeIn applies the In predicate on the "meal_type" field.

func MealTypeLT

func MealTypeLT(v string) predicate.Meal

MealTypeLT applies the LT predicate on the "meal_type" field.

func MealTypeLTE

func MealTypeLTE(v string) predicate.Meal

MealTypeLTE applies the LTE predicate on the "meal_type" field.

func MealTypeNEQ

func MealTypeNEQ(v string) predicate.Meal

MealTypeNEQ applies the NEQ predicate on the "meal_type" field.

func MealTypeNotIn

func MealTypeNotIn(vs ...string) predicate.Meal

MealTypeNotIn applies the NotIn predicate on the "meal_type" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Meal) predicate.Meal

Or groups predicates with the OR operator between them.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL