Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Correlation) predicate.Correlation
- func Coef(v float64) predicate.Correlation
- func CoefEQ(v float64) predicate.Correlation
- func CoefGT(v float64) predicate.Correlation
- func CoefGTE(v float64) predicate.Correlation
- func CoefIn(vs ...float64) predicate.Correlation
- func CoefLT(v float64) predicate.Correlation
- func CoefLTE(v float64) predicate.Correlation
- func CoefNEQ(v float64) predicate.Correlation
- func CoefNotIn(vs ...float64) predicate.Correlation
- func CreateTime(v time.Time) predicate.Correlation
- func CreateTimeEQ(v time.Time) predicate.Correlation
- func CreateTimeGT(v time.Time) predicate.Correlation
- func CreateTimeGTE(v time.Time) predicate.Correlation
- func CreateTimeIn(vs ...time.Time) predicate.Correlation
- func CreateTimeLT(v time.Time) predicate.Correlation
- func CreateTimeLTE(v time.Time) predicate.Correlation
- func CreateTimeNEQ(v time.Time) predicate.Correlation
- func CreateTimeNotIn(vs ...time.Time) predicate.Correlation
- func GranularityEQ(v Granularity) predicate.Correlation
- func GranularityIn(vs ...Granularity) predicate.Correlation
- func GranularityNEQ(v Granularity) predicate.Correlation
- func GranularityNotIn(vs ...Granularity) predicate.Correlation
- func GranularityValidator(gr Granularity) error
- func HasLeft() predicate.Correlation
- func HasLeftWith(preds ...predicate.Dataset) predicate.Correlation
- func HasRight() predicate.Correlation
- func HasRightWith(preds ...predicate.Dataset) predicate.Correlation
- func ID(id int) predicate.Correlation
- func IDEQ(id int) predicate.Correlation
- func IDGT(id int) predicate.Correlation
- func IDGTE(id int) predicate.Correlation
- func IDIn(ids ...int) predicate.Correlation
- func IDLT(id int) predicate.Correlation
- func IDLTE(id int) predicate.Correlation
- func IDNEQ(id int) predicate.Correlation
- func IDNotIn(ids ...int) predicate.Correlation
- func Not(p predicate.Correlation) predicate.Correlation
- func Or(predicates ...predicate.Correlation) predicate.Correlation
- func P(v float64) predicate.Correlation
- func PEQ(v float64) predicate.Correlation
- func PGT(v float64) predicate.Correlation
- func PGTE(v float64) predicate.Correlation
- func PIn(vs ...float64) predicate.Correlation
- func PLT(v float64) predicate.Correlation
- func PLTE(v float64) predicate.Correlation
- func PNEQ(v float64) predicate.Correlation
- func PNotIn(vs ...float64) predicate.Correlation
- func R2(v float64) predicate.Correlation
- func R2EQ(v float64) predicate.Correlation
- func R2GT(v float64) predicate.Correlation
- func R2GTE(v float64) predicate.Correlation
- func R2In(vs ...float64) predicate.Correlation
- func R2LT(v float64) predicate.Correlation
- func R2LTE(v float64) predicate.Correlation
- func R2NEQ(v float64) predicate.Correlation
- func R2NotIn(vs ...float64) predicate.Correlation
- func Type(v string) predicate.Correlation
- func TypeContains(v string) predicate.Correlation
- func TypeContainsFold(v string) predicate.Correlation
- func TypeEQ(v string) predicate.Correlation
- func TypeEqualFold(v string) predicate.Correlation
- func TypeGT(v string) predicate.Correlation
- func TypeGTE(v string) predicate.Correlation
- func TypeHasPrefix(v string) predicate.Correlation
- func TypeHasSuffix(v string) predicate.Correlation
- func TypeIn(vs ...string) predicate.Correlation
- func TypeLT(v string) predicate.Correlation
- func TypeLTE(v string) predicate.Correlation
- func TypeNEQ(v string) predicate.Correlation
- func TypeNotIn(vs ...string) predicate.Correlation
- func UpdateTime(v time.Time) predicate.Correlation
- func UpdateTimeEQ(v time.Time) predicate.Correlation
- func UpdateTimeGT(v time.Time) predicate.Correlation
- func UpdateTimeGTE(v time.Time) predicate.Correlation
- func UpdateTimeIn(vs ...time.Time) predicate.Correlation
- func UpdateTimeLT(v time.Time) predicate.Correlation
- func UpdateTimeLTE(v time.Time) predicate.Correlation
- func UpdateTimeNEQ(v time.Time) predicate.Correlation
- func UpdateTimeNotIn(vs ...time.Time) predicate.Correlation
- func ValidColumn(column string) bool
- type Granularity
Constants ¶
const ( // Label holds the string label denoting the correlation type in the database. Label = "correlation" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldCoef holds the string denoting the coef field in the database. FieldCoef = "coef" // FieldP holds the string denoting the p field in the database. FieldP = "p" // FieldR2 holds the string denoting the r2 field in the database. FieldR2 = "r2" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldGranularity holds the string denoting the granularity field in the database. FieldGranularity = "granularity" // EdgeLeft holds the string denoting the left edge name in mutations. EdgeLeft = "left" // EdgeRight holds the string denoting the right edge name in mutations. EdgeRight = "right" // Table holds the table name of the correlation in the database. Table = "correlations" // LeftTable is the table the holds the left relation/edge. LeftTable = "correlations" // LeftInverseTable is the table name for the Dataset entity. // It exists in this package in order to avoid circular dependency with the "dataset" package. LeftInverseTable = "datasets" // LeftColumn is the table column denoting the left relation/edge. LeftColumn = "dataset_left" // RightTable is the table the holds the right relation/edge. RightTable = "correlations" // RightInverseTable is the table name for the Dataset entity. // It exists in this package in order to avoid circular dependency with the "dataset" package. RightInverseTable = "datasets" // RightColumn is the table column denoting the right relation/edge. RightColumn = "dataset_right" )
const DefaultGranularity = GranularityDay
GranularityDay is the default value of the Granularity enum.
Variables ¶
var ( // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time // TypeValidator is a validator for the "type" field. It is called by the builders before save. TypeValidator func(string) error )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldCoef, FieldP, FieldR2, FieldType, FieldGranularity, }
Columns holds all SQL columns for correlation fields.
var ForeignKeys = []string{
"dataset_left",
"dataset_right",
}
ForeignKeys holds the SQL foreign-keys that are owned by the Correlation type.
Functions ¶
func And ¶
func And(predicates ...predicate.Correlation) predicate.Correlation
And groups predicates with the AND operator between them.
func Coef ¶
func Coef(v float64) predicate.Correlation
Coef applies equality check predicate on the "coef" field. It's identical to CoefEQ.
func CoefEQ ¶
func CoefEQ(v float64) predicate.Correlation
CoefEQ applies the EQ predicate on the "coef" field.
func CoefGT ¶
func CoefGT(v float64) predicate.Correlation
CoefGT applies the GT predicate on the "coef" field.
func CoefGTE ¶
func CoefGTE(v float64) predicate.Correlation
CoefGTE applies the GTE predicate on the "coef" field.
func CoefIn ¶
func CoefIn(vs ...float64) predicate.Correlation
CoefIn applies the In predicate on the "coef" field.
func CoefLT ¶
func CoefLT(v float64) predicate.Correlation
CoefLT applies the LT predicate on the "coef" field.
func CoefLTE ¶
func CoefLTE(v float64) predicate.Correlation
CoefLTE applies the LTE predicate on the "coef" field.
func CoefNEQ ¶
func CoefNEQ(v float64) predicate.Correlation
CoefNEQ applies the NEQ predicate on the "coef" field.
func CoefNotIn ¶
func CoefNotIn(vs ...float64) predicate.Correlation
CoefNotIn applies the NotIn predicate on the "coef" field.
func CreateTime ¶
func CreateTime(v time.Time) predicate.Correlation
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
func CreateTimeEQ(v time.Time) predicate.Correlation
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
func CreateTimeGT(v time.Time) predicate.Correlation
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
func CreateTimeGTE(v time.Time) predicate.Correlation
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
func CreateTimeIn(vs ...time.Time) predicate.Correlation
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
func CreateTimeLT(v time.Time) predicate.Correlation
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
func CreateTimeLTE(v time.Time) predicate.Correlation
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
func CreateTimeNEQ(v time.Time) predicate.Correlation
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
func CreateTimeNotIn(vs ...time.Time) predicate.Correlation
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func GranularityEQ ¶
func GranularityEQ(v Granularity) predicate.Correlation
GranularityEQ applies the EQ predicate on the "granularity" field.
func GranularityIn ¶
func GranularityIn(vs ...Granularity) predicate.Correlation
GranularityIn applies the In predicate on the "granularity" field.
func GranularityNEQ ¶
func GranularityNEQ(v Granularity) predicate.Correlation
GranularityNEQ applies the NEQ predicate on the "granularity" field.
func GranularityNotIn ¶
func GranularityNotIn(vs ...Granularity) predicate.Correlation
GranularityNotIn applies the NotIn predicate on the "granularity" field.
func GranularityValidator ¶
func GranularityValidator(gr Granularity) error
GranularityValidator is a validator for the "granularity" field enum values. It is called by the builders before save.
func HasLeft ¶
func HasLeft() predicate.Correlation
HasLeft applies the HasEdge predicate on the "left" edge.
func HasLeftWith ¶
func HasLeftWith(preds ...predicate.Dataset) predicate.Correlation
HasLeftWith applies the HasEdge predicate on the "left" edge with a given conditions (other predicates).
func HasRight ¶
func HasRight() predicate.Correlation
HasRight applies the HasEdge predicate on the "right" edge.
func HasRightWith ¶
func HasRightWith(preds ...predicate.Dataset) predicate.Correlation
HasRightWith applies the HasEdge predicate on the "right" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.Correlation
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.Correlation
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.Correlation
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.Correlation
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.Correlation
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.Correlation) predicate.Correlation
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Correlation) predicate.Correlation
Or groups predicates with the OR operator between them.
func P ¶
func P(v float64) predicate.Correlation
P applies equality check predicate on the "p" field. It's identical to PEQ.
func PGTE ¶
func PGTE(v float64) predicate.Correlation
PGTE applies the GTE predicate on the "p" field.
func PIn ¶
func PIn(vs ...float64) predicate.Correlation
PIn applies the In predicate on the "p" field.
func PLTE ¶
func PLTE(v float64) predicate.Correlation
PLTE applies the LTE predicate on the "p" field.
func PNEQ ¶
func PNEQ(v float64) predicate.Correlation
PNEQ applies the NEQ predicate on the "p" field.
func PNotIn ¶
func PNotIn(vs ...float64) predicate.Correlation
PNotIn applies the NotIn predicate on the "p" field.
func R2 ¶
func R2(v float64) predicate.Correlation
R2 applies equality check predicate on the "r2" field. It's identical to R2EQ.
func R2EQ ¶
func R2EQ(v float64) predicate.Correlation
R2EQ applies the EQ predicate on the "r2" field.
func R2GT ¶
func R2GT(v float64) predicate.Correlation
R2GT applies the GT predicate on the "r2" field.
func R2GTE ¶
func R2GTE(v float64) predicate.Correlation
R2GTE applies the GTE predicate on the "r2" field.
func R2In ¶
func R2In(vs ...float64) predicate.Correlation
R2In applies the In predicate on the "r2" field.
func R2LT ¶
func R2LT(v float64) predicate.Correlation
R2LT applies the LT predicate on the "r2" field.
func R2LTE ¶
func R2LTE(v float64) predicate.Correlation
R2LTE applies the LTE predicate on the "r2" field.
func R2NEQ ¶
func R2NEQ(v float64) predicate.Correlation
R2NEQ applies the NEQ predicate on the "r2" field.
func R2NotIn ¶
func R2NotIn(vs ...float64) predicate.Correlation
R2NotIn applies the NotIn predicate on the "r2" field.
func Type ¶
func Type(v string) predicate.Correlation
Type applies equality check predicate on the "type" field. It's identical to TypeEQ.
func TypeContains ¶
func TypeContains(v string) predicate.Correlation
TypeContains applies the Contains predicate on the "type" field.
func TypeContainsFold ¶
func TypeContainsFold(v string) predicate.Correlation
TypeContainsFold applies the ContainsFold predicate on the "type" field.
func TypeEQ ¶
func TypeEQ(v string) predicate.Correlation
TypeEQ applies the EQ predicate on the "type" field.
func TypeEqualFold ¶
func TypeEqualFold(v string) predicate.Correlation
TypeEqualFold applies the EqualFold predicate on the "type" field.
func TypeGT ¶
func TypeGT(v string) predicate.Correlation
TypeGT applies the GT predicate on the "type" field.
func TypeGTE ¶
func TypeGTE(v string) predicate.Correlation
TypeGTE applies the GTE predicate on the "type" field.
func TypeHasPrefix ¶
func TypeHasPrefix(v string) predicate.Correlation
TypeHasPrefix applies the HasPrefix predicate on the "type" field.
func TypeHasSuffix ¶
func TypeHasSuffix(v string) predicate.Correlation
TypeHasSuffix applies the HasSuffix predicate on the "type" field.
func TypeIn ¶
func TypeIn(vs ...string) predicate.Correlation
TypeIn applies the In predicate on the "type" field.
func TypeLT ¶
func TypeLT(v string) predicate.Correlation
TypeLT applies the LT predicate on the "type" field.
func TypeLTE ¶
func TypeLTE(v string) predicate.Correlation
TypeLTE applies the LTE predicate on the "type" field.
func TypeNEQ ¶
func TypeNEQ(v string) predicate.Correlation
TypeNEQ applies the NEQ predicate on the "type" field.
func TypeNotIn ¶
func TypeNotIn(vs ...string) predicate.Correlation
TypeNotIn applies the NotIn predicate on the "type" field.
func UpdateTime ¶
func UpdateTime(v time.Time) predicate.Correlation
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
func UpdateTimeEQ(v time.Time) predicate.Correlation
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
func UpdateTimeGT(v time.Time) predicate.Correlation
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
func UpdateTimeGTE(v time.Time) predicate.Correlation
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
func UpdateTimeIn(vs ...time.Time) predicate.Correlation
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
func UpdateTimeLT(v time.Time) predicate.Correlation
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
func UpdateTimeLTE(v time.Time) predicate.Correlation
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
func UpdateTimeNEQ(v time.Time) predicate.Correlation
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
func UpdateTimeNotIn(vs ...time.Time) predicate.Correlation
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type Granularity ¶
type Granularity string
Granularity defines the type for the "granularity" enum field.
const ( GranularityDay Granularity = "day" GranularityWeek Granularity = "week" GranularityMonth Granularity = "month" )
Granularity values.
func (Granularity) String ¶
func (gr Granularity) String() string