Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Journal) predicate.Journal
- func Foodweight(v float64) predicate.Journal
- func FoodweightEQ(v float64) predicate.Journal
- func FoodweightGT(v float64) predicate.Journal
- func FoodweightGTE(v float64) predicate.Journal
- func FoodweightIn(vs ...float64) predicate.Journal
- func FoodweightLT(v float64) predicate.Journal
- func FoodweightLTE(v float64) predicate.Journal
- func FoodweightNEQ(v float64) predicate.Journal
- func FoodweightNotIn(vs ...float64) predicate.Journal
- func HasFood() predicate.Journal
- func HasFoodWith(preds ...predicate.Food) predicate.Journal
- func ID(id int) predicate.Journal
- func IDEQ(id int) predicate.Journal
- func IDGT(id int) predicate.Journal
- func IDGTE(id int) predicate.Journal
- func IDIn(ids ...int) predicate.Journal
- func IDLT(id int) predicate.Journal
- func IDLTE(id int) predicate.Journal
- func IDNEQ(id int) predicate.Journal
- func IDNotIn(ids ...int) predicate.Journal
- func Meal(v int64) predicate.Journal
- func MealEQ(v int64) predicate.Journal
- func MealGT(v int64) predicate.Journal
- func MealGTE(v int64) predicate.Journal
- func MealIn(vs ...int64) predicate.Journal
- func MealLT(v int64) predicate.Journal
- func MealLTE(v int64) predicate.Journal
- func MealNEQ(v int64) predicate.Journal
- func MealNotIn(vs ...int64) predicate.Journal
- func Not(p predicate.Journal) predicate.Journal
- func Or(predicates ...predicate.Journal) predicate.Journal
- func Timestamp(v time.Time) predicate.Journal
- func TimestampEQ(v time.Time) predicate.Journal
- func TimestampGT(v time.Time) predicate.Journal
- func TimestampGTE(v time.Time) predicate.Journal
- func TimestampIn(vs ...time.Time) predicate.Journal
- func TimestampLT(v time.Time) predicate.Journal
- func TimestampLTE(v time.Time) predicate.Journal
- func TimestampNEQ(v time.Time) predicate.Journal
- func TimestampNotIn(vs ...time.Time) predicate.Journal
- func Userid(v int64) predicate.Journal
- func UseridEQ(v int64) predicate.Journal
- func UseridGT(v int64) predicate.Journal
- func UseridGTE(v int64) predicate.Journal
- func UseridIn(vs ...int64) predicate.Journal
- func UseridLT(v int64) predicate.Journal
- func UseridLTE(v int64) predicate.Journal
- func UseridNEQ(v int64) predicate.Journal
- func UseridNotIn(vs ...int64) predicate.Journal
- func ValidColumn(column string) bool
- type OrderOption
- func ByFoodField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByFoodweight(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMeal(opts ...sql.OrderTermOption) OrderOption
- func ByTimestamp(opts ...sql.OrderTermOption) OrderOption
- func ByUserid(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldUserid, FieldTimestamp, FieldMeal, FieldFoodweight, }
Columns holds all SQL columns for journal fields.
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 Foodweight ¶
Foodweight applies equality check predicate on the "foodweight" field. It's identical to FoodweightEQ.
func FoodweightEQ ¶
FoodweightEQ applies the EQ predicate on the "foodweight" field.
func FoodweightGT ¶
FoodweightGT applies the GT predicate on the "foodweight" field.
func FoodweightGTE ¶
FoodweightGTE applies the GTE predicate on the "foodweight" field.
func FoodweightIn ¶
FoodweightIn applies the In predicate on the "foodweight" field.
func FoodweightLT ¶
FoodweightLT applies the LT predicate on the "foodweight" field.
func FoodweightLTE ¶
FoodweightLTE applies the LTE predicate on the "foodweight" field.
func FoodweightNEQ ¶
FoodweightNEQ applies the NEQ predicate on the "foodweight" field.
func FoodweightNotIn ¶
FoodweightNotIn applies the NotIn predicate on the "foodweight" field.
func HasFoodWith ¶
HasFoodWith applies the HasEdge predicate on the "food" edge with a given conditions (other predicates).
func Timestamp ¶
Timestamp applies equality check predicate on the "timestamp" field. It's identical to TimestampEQ.
func TimestampEQ ¶
TimestampEQ applies the EQ predicate on the "timestamp" field.
func TimestampGT ¶
TimestampGT applies the GT predicate on the "timestamp" field.
func TimestampGTE ¶
TimestampGTE applies the GTE predicate on the "timestamp" field.
func TimestampIn ¶
TimestampIn applies the In predicate on the "timestamp" field.
func TimestampLT ¶
TimestampLT applies the LT predicate on the "timestamp" field.
func TimestampLTE ¶
TimestampLTE applies the LTE predicate on the "timestamp" field.
func TimestampNEQ ¶
TimestampNEQ applies the NEQ predicate on the "timestamp" field.
func TimestampNotIn ¶
TimestampNotIn applies the NotIn predicate on the "timestamp" field.
func Userid ¶
Userid applies equality check predicate on the "userid" field. It's identical to UseridEQ.
func UseridNotIn ¶
UseridNotIn applies the NotIn predicate on the "userid" 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 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.