Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.BFPDataPoint) predicate.BFPDataPoint
- func CreatedAt(v time.Time) predicate.BFPDataPoint
- func CreatedAtEQ(v time.Time) predicate.BFPDataPoint
- func CreatedAtGT(v time.Time) predicate.BFPDataPoint
- func CreatedAtGTE(v time.Time) predicate.BFPDataPoint
- func CreatedAtIn(vs ...time.Time) predicate.BFPDataPoint
- func CreatedAtLT(v time.Time) predicate.BFPDataPoint
- func CreatedAtLTE(v time.Time) predicate.BFPDataPoint
- func CreatedAtNEQ(v time.Time) predicate.BFPDataPoint
- func CreatedAtNotIn(vs ...time.Time) predicate.BFPDataPoint
- func FatPercentage(v float64) predicate.BFPDataPoint
- func FatPercentageEQ(v float64) predicate.BFPDataPoint
- func FatPercentageGT(v float64) predicate.BFPDataPoint
- func FatPercentageGTE(v float64) predicate.BFPDataPoint
- func FatPercentageIn(vs ...float64) predicate.BFPDataPoint
- func FatPercentageLT(v float64) predicate.BFPDataPoint
- func FatPercentageLTE(v float64) predicate.BFPDataPoint
- func FatPercentageNEQ(v float64) predicate.BFPDataPoint
- func FatPercentageNotIn(vs ...float64) predicate.BFPDataPoint
- func HasUser() predicate.BFPDataPoint
- func HasUserWith(preds ...predicate.User) predicate.BFPDataPoint
- func ID(id int) predicate.BFPDataPoint
- func IDEQ(id int) predicate.BFPDataPoint
- func IDGT(id int) predicate.BFPDataPoint
- func IDGTE(id int) predicate.BFPDataPoint
- func IDIn(ids ...int) predicate.BFPDataPoint
- func IDLT(id int) predicate.BFPDataPoint
- func IDLTE(id int) predicate.BFPDataPoint
- func IDNEQ(id int) predicate.BFPDataPoint
- func IDNotIn(ids ...int) predicate.BFPDataPoint
- func Not(p predicate.BFPDataPoint) predicate.BFPDataPoint
- func Or(predicates ...predicate.BFPDataPoint) predicate.BFPDataPoint
- func TotalWeight(v int) predicate.BFPDataPoint
- func TotalWeightEQ(v int) predicate.BFPDataPoint
- func TotalWeightGT(v int) predicate.BFPDataPoint
- func TotalWeightGTE(v int) predicate.BFPDataPoint
- func TotalWeightIn(vs ...int) predicate.BFPDataPoint
- func TotalWeightLT(v int) predicate.BFPDataPoint
- func TotalWeightLTE(v int) predicate.BFPDataPoint
- func TotalWeightNEQ(v int) predicate.BFPDataPoint
- func TotalWeightNotIn(vs ...int) predicate.BFPDataPoint
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the bfpdatapoint type in the database. Label = "bfp_data_point" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldFatPercentage holds the string denoting the fat_percentage field in the database. FieldFatPercentage = "fat_percentage" // FieldTotalWeight holds the string denoting the total_weight field in the database. FieldTotalWeight = "total_weight" // 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 bfpdatapoint in the database. Table = "bfp_data_points" // UserTable is the table that holds the user relation/edge. UserTable = "bfp_data_points" // 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_bf_ps" )
Variables ¶
var ( // FatPercentageValidator is a validator for the "fat_percentage" field. It is called by the builders before save. FatPercentageValidator func(float64) error // TotalWeightValidator is a validator for the "total_weight" field. It is called by the builders before save. TotalWeightValidator func(int) error // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt time.Time )
var Columns = []string{ FieldID, FieldFatPercentage, FieldTotalWeight, FieldCreatedAt, }
Columns holds all SQL columns for bfpdatapoint fields.
var ForeignKeys = []string{
"user_bf_ps",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "bfp_data_points" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.BFPDataPoint) predicate.BFPDataPoint
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.BFPDataPoint
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.BFPDataPoint
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.BFPDataPoint
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.BFPDataPoint
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.BFPDataPoint
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.BFPDataPoint
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.BFPDataPoint
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.BFPDataPoint
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.BFPDataPoint
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func FatPercentage ¶
func FatPercentage(v float64) predicate.BFPDataPoint
FatPercentage applies equality check predicate on the "fat_percentage" field. It's identical to FatPercentageEQ.
func FatPercentageEQ ¶
func FatPercentageEQ(v float64) predicate.BFPDataPoint
FatPercentageEQ applies the EQ predicate on the "fat_percentage" field.
func FatPercentageGT ¶
func FatPercentageGT(v float64) predicate.BFPDataPoint
FatPercentageGT applies the GT predicate on the "fat_percentage" field.
func FatPercentageGTE ¶
func FatPercentageGTE(v float64) predicate.BFPDataPoint
FatPercentageGTE applies the GTE predicate on the "fat_percentage" field.
func FatPercentageIn ¶
func FatPercentageIn(vs ...float64) predicate.BFPDataPoint
FatPercentageIn applies the In predicate on the "fat_percentage" field.
func FatPercentageLT ¶
func FatPercentageLT(v float64) predicate.BFPDataPoint
FatPercentageLT applies the LT predicate on the "fat_percentage" field.
func FatPercentageLTE ¶
func FatPercentageLTE(v float64) predicate.BFPDataPoint
FatPercentageLTE applies the LTE predicate on the "fat_percentage" field.
func FatPercentageNEQ ¶
func FatPercentageNEQ(v float64) predicate.BFPDataPoint
FatPercentageNEQ applies the NEQ predicate on the "fat_percentage" field.
func FatPercentageNotIn ¶
func FatPercentageNotIn(vs ...float64) predicate.BFPDataPoint
FatPercentageNotIn applies the NotIn predicate on the "fat_percentage" field.
func HasUser ¶
func HasUser() predicate.BFPDataPoint
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.User) predicate.BFPDataPoint
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.BFPDataPoint
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.BFPDataPoint
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.BFPDataPoint
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.BFPDataPoint
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.BFPDataPoint
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.BFPDataPoint) predicate.BFPDataPoint
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.BFPDataPoint) predicate.BFPDataPoint
Or groups predicates with the OR operator between them.
func TotalWeight ¶
func TotalWeight(v int) predicate.BFPDataPoint
TotalWeight applies equality check predicate on the "total_weight" field. It's identical to TotalWeightEQ.
func TotalWeightEQ ¶
func TotalWeightEQ(v int) predicate.BFPDataPoint
TotalWeightEQ applies the EQ predicate on the "total_weight" field.
func TotalWeightGT ¶
func TotalWeightGT(v int) predicate.BFPDataPoint
TotalWeightGT applies the GT predicate on the "total_weight" field.
func TotalWeightGTE ¶
func TotalWeightGTE(v int) predicate.BFPDataPoint
TotalWeightGTE applies the GTE predicate on the "total_weight" field.
func TotalWeightIn ¶
func TotalWeightIn(vs ...int) predicate.BFPDataPoint
TotalWeightIn applies the In predicate on the "total_weight" field.
func TotalWeightLT ¶
func TotalWeightLT(v int) predicate.BFPDataPoint
TotalWeightLT applies the LT predicate on the "total_weight" field.
func TotalWeightLTE ¶
func TotalWeightLTE(v int) predicate.BFPDataPoint
TotalWeightLTE applies the LTE predicate on the "total_weight" field.
func TotalWeightNEQ ¶
func TotalWeightNEQ(v int) predicate.BFPDataPoint
TotalWeightNEQ applies the NEQ predicate on the "total_weight" field.
func TotalWeightNotIn ¶
func TotalWeightNotIn(vs ...int) predicate.BFPDataPoint
TotalWeightNotIn applies the NotIn predicate on the "total_weight" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.