journal

package
v0.0.0-...-8c11f49 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the journal type in the database.
	Label = "journal"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldUserid holds the string denoting the userid field in the database.
	FieldUserid = "userid"
	// FieldTimestamp holds the string denoting the timestamp field in the database.
	FieldTimestamp = "timestamp"
	// FieldMeal holds the string denoting the meal field in the database.
	FieldMeal = "meal"
	// FieldFoodweight holds the string denoting the foodweight field in the database.
	FieldFoodweight = "foodweight"
	// EdgeFood holds the string denoting the food edge name in mutations.
	EdgeFood = "food"
	// Table holds the table name of the journal in the database.
	Table = "journals"
	// FoodTable is the table that holds the food relation/edge.
	FoodTable = "journals"
	// FoodInverseTable is the table name for the Food entity.
	// It exists in this package in order to avoid circular dependency with the "food" package.
	FoodInverseTable = "foods"
	// FoodColumn is the table column denoting the food relation/edge.
	FoodColumn = "food_journals"
)

Variables

Columns holds all SQL columns for journal fields.

View Source
var ForeignKeys = []string{
	"food_journals",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "journals" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Journal) predicate.Journal

And groups predicates with the AND operator between them.

func Foodweight

func Foodweight(v float64) predicate.Journal

Foodweight applies equality check predicate on the "foodweight" field. It's identical to FoodweightEQ.

func FoodweightEQ

func FoodweightEQ(v float64) predicate.Journal

FoodweightEQ applies the EQ predicate on the "foodweight" field.

func FoodweightGT

func FoodweightGT(v float64) predicate.Journal

FoodweightGT applies the GT predicate on the "foodweight" field.

func FoodweightGTE

func FoodweightGTE(v float64) predicate.Journal

FoodweightGTE applies the GTE predicate on the "foodweight" field.

func FoodweightIn

func FoodweightIn(vs ...float64) predicate.Journal

FoodweightIn applies the In predicate on the "foodweight" field.

func FoodweightLT

func FoodweightLT(v float64) predicate.Journal

FoodweightLT applies the LT predicate on the "foodweight" field.

func FoodweightLTE

func FoodweightLTE(v float64) predicate.Journal

FoodweightLTE applies the LTE predicate on the "foodweight" field.

func FoodweightNEQ

func FoodweightNEQ(v float64) predicate.Journal

FoodweightNEQ applies the NEQ predicate on the "foodweight" field.

func FoodweightNotIn

func FoodweightNotIn(vs ...float64) predicate.Journal

FoodweightNotIn applies the NotIn predicate on the "foodweight" field.

func HasFood

func HasFood() predicate.Journal

HasFood applies the HasEdge predicate on the "food" edge.

func HasFoodWith

func HasFoodWith(preds ...predicate.Food) predicate.Journal

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

func ID

func ID(id int) predicate.Journal

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Journal

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Journal

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Journal

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Journal

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Journal

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Journal

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Meal

func Meal(v int64) predicate.Journal

Meal applies equality check predicate on the "meal" field. It's identical to MealEQ.

func MealEQ

func MealEQ(v int64) predicate.Journal

MealEQ applies the EQ predicate on the "meal" field.

func MealGT

func MealGT(v int64) predicate.Journal

MealGT applies the GT predicate on the "meal" field.

func MealGTE

func MealGTE(v int64) predicate.Journal

MealGTE applies the GTE predicate on the "meal" field.

func MealIn

func MealIn(vs ...int64) predicate.Journal

MealIn applies the In predicate on the "meal" field.

func MealLT

func MealLT(v int64) predicate.Journal

MealLT applies the LT predicate on the "meal" field.

func MealLTE

func MealLTE(v int64) predicate.Journal

MealLTE applies the LTE predicate on the "meal" field.

func MealNEQ

func MealNEQ(v int64) predicate.Journal

MealNEQ applies the NEQ predicate on the "meal" field.

func MealNotIn

func MealNotIn(vs ...int64) predicate.Journal

MealNotIn applies the NotIn predicate on the "meal" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Journal) predicate.Journal

Or groups predicates with the OR operator between them.

func Timestamp

func Timestamp(v time.Time) predicate.Journal

Timestamp applies equality check predicate on the "timestamp" field. It's identical to TimestampEQ.

func TimestampEQ

func TimestampEQ(v time.Time) predicate.Journal

TimestampEQ applies the EQ predicate on the "timestamp" field.

func TimestampGT

func TimestampGT(v time.Time) predicate.Journal

TimestampGT applies the GT predicate on the "timestamp" field.

func TimestampGTE

func TimestampGTE(v time.Time) predicate.Journal

TimestampGTE applies the GTE predicate on the "timestamp" field.

func TimestampIn

func TimestampIn(vs ...time.Time) predicate.Journal

TimestampIn applies the In predicate on the "timestamp" field.

func TimestampLT

func TimestampLT(v time.Time) predicate.Journal

TimestampLT applies the LT predicate on the "timestamp" field.

func TimestampLTE

func TimestampLTE(v time.Time) predicate.Journal

TimestampLTE applies the LTE predicate on the "timestamp" field.

func TimestampNEQ

func TimestampNEQ(v time.Time) predicate.Journal

TimestampNEQ applies the NEQ predicate on the "timestamp" field.

func TimestampNotIn

func TimestampNotIn(vs ...time.Time) predicate.Journal

TimestampNotIn applies the NotIn predicate on the "timestamp" field.

func Userid

func Userid(v int64) predicate.Journal

Userid applies equality check predicate on the "userid" field. It's identical to UseridEQ.

func UseridEQ

func UseridEQ(v int64) predicate.Journal

UseridEQ applies the EQ predicate on the "userid" field.

func UseridGT

func UseridGT(v int64) predicate.Journal

UseridGT applies the GT predicate on the "userid" field.

func UseridGTE

func UseridGTE(v int64) predicate.Journal

UseridGTE applies the GTE predicate on the "userid" field.

func UseridIn

func UseridIn(vs ...int64) predicate.Journal

UseridIn applies the In predicate on the "userid" field.

func UseridLT

func UseridLT(v int64) predicate.Journal

UseridLT applies the LT predicate on the "userid" field.

func UseridLTE

func UseridLTE(v int64) predicate.Journal

UseridLTE applies the LTE predicate on the "userid" field.

func UseridNEQ

func UseridNEQ(v int64) predicate.Journal

UseridNEQ applies the NEQ predicate on the "userid" field.

func UseridNotIn

func UseridNotIn(vs ...int64) predicate.Journal

UseridNotIn applies the NotIn predicate on the "userid" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Journal queries.

func ByFoodField

func ByFoodField(field string, opts ...sql.OrderTermOption) OrderOption

ByFoodField orders the results by food field.

func ByFoodweight

func ByFoodweight(opts ...sql.OrderTermOption) OrderOption

ByFoodweight orders the results by the foodweight field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByMeal

func ByMeal(opts ...sql.OrderTermOption) OrderOption

ByMeal orders the results by the meal field.

func ByTimestamp

func ByTimestamp(opts ...sql.OrderTermOption) OrderOption

ByTimestamp orders the results by the timestamp field.

func ByUserid

func ByUserid(opts ...sql.OrderTermOption) OrderOption

ByUserid orders the results by the userid field.

Jump to

Keyboard shortcuts

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