Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Norm) predicate.Norm
- func Base(v int) predicate.Norm
- func BaseEQ(v int) predicate.Norm
- func BaseGT(v int) predicate.Norm
- func BaseGTE(v int) predicate.Norm
- func BaseIn(vs ...int) predicate.Norm
- func BaseLT(v int) predicate.Norm
- func BaseLTE(v int) predicate.Norm
- func BaseNEQ(v int) predicate.Norm
- func BaseNotIn(vs ...int) predicate.Norm
- func CreateTime(v time.Time) predicate.Norm
- func CreateTimeEQ(v time.Time) predicate.Norm
- func CreateTimeGT(v time.Time) predicate.Norm
- func CreateTimeGTE(v time.Time) predicate.Norm
- func CreateTimeIn(vs ...time.Time) predicate.Norm
- func CreateTimeLT(v time.Time) predicate.Norm
- func CreateTimeLTE(v time.Time) predicate.Norm
- func CreateTimeNEQ(v time.Time) predicate.Norm
- func CreateTimeNotIn(vs ...time.Time) predicate.Norm
- func HasSample() predicate.Norm
- func HasSampleWith(preds ...predicate.Sample) predicate.Norm
- func HasScale() predicate.Norm
- func HasScaleWith(preds ...predicate.Scale) predicate.Norm
- func ID(id uuid.UUID) predicate.Norm
- func IDEQ(id uuid.UUID) predicate.Norm
- func IDGT(id uuid.UUID) predicate.Norm
- func IDGTE(id uuid.UUID) predicate.Norm
- func IDIn(ids ...uuid.UUID) predicate.Norm
- func IDLT(id uuid.UUID) predicate.Norm
- func IDLTE(id uuid.UUID) predicate.Norm
- func IDNEQ(id uuid.UUID) predicate.Norm
- func IDNotIn(ids ...uuid.UUID) predicate.Norm
- func Mean(v float64) predicate.Norm
- func MeanEQ(v float64) predicate.Norm
- func MeanGT(v float64) predicate.Norm
- func MeanGTE(v float64) predicate.Norm
- func MeanIn(vs ...float64) predicate.Norm
- func MeanLT(v float64) predicate.Norm
- func MeanLTE(v float64) predicate.Norm
- func MeanNEQ(v float64) predicate.Norm
- func MeanNotIn(vs ...float64) predicate.Norm
- func MetaIsNil() predicate.Norm
- func MetaNotNil() predicate.Norm
- func Name(v string) predicate.Norm
- func NameContains(v string) predicate.Norm
- func NameContainsFold(v string) predicate.Norm
- func NameEQ(v string) predicate.Norm
- func NameEqualFold(v string) predicate.Norm
- func NameGT(v string) predicate.Norm
- func NameGTE(v string) predicate.Norm
- func NameHasPrefix(v string) predicate.Norm
- func NameHasSuffix(v string) predicate.Norm
- func NameIn(vs ...string) predicate.Norm
- func NameLT(v string) predicate.Norm
- func NameLTE(v string) predicate.Norm
- func NameNEQ(v string) predicate.Norm
- func NameNotIn(vs ...string) predicate.Norm
- func Not(p predicate.Norm) predicate.Norm
- func Or(predicates ...predicate.Norm) predicate.Norm
- func Rank(v int) predicate.Norm
- func RankEQ(v int) predicate.Norm
- func RankGT(v int) predicate.Norm
- func RankGTE(v int) predicate.Norm
- func RankIn(vs ...int) predicate.Norm
- func RankLT(v int) predicate.Norm
- func RankLTE(v int) predicate.Norm
- func RankNEQ(v int) predicate.Norm
- func RankNotIn(vs ...int) predicate.Norm
- func Sigma(v float64) predicate.Norm
- func SigmaEQ(v float64) predicate.Norm
- func SigmaGT(v float64) predicate.Norm
- func SigmaGTE(v float64) predicate.Norm
- func SigmaIn(vs ...float64) predicate.Norm
- func SigmaLT(v float64) predicate.Norm
- func SigmaLTE(v float64) predicate.Norm
- func SigmaNEQ(v float64) predicate.Norm
- func SigmaNotIn(vs ...float64) predicate.Norm
- func UpdateTime(v time.Time) predicate.Norm
- func UpdateTimeEQ(v time.Time) predicate.Norm
- func UpdateTimeGT(v time.Time) predicate.Norm
- func UpdateTimeGTE(v time.Time) predicate.Norm
- func UpdateTimeIn(vs ...time.Time) predicate.Norm
- func UpdateTimeLT(v time.Time) predicate.Norm
- func UpdateTimeLTE(v time.Time) predicate.Norm
- func UpdateTimeNEQ(v time.Time) predicate.Norm
- func UpdateTimeNotIn(vs ...time.Time) predicate.Norm
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the norm type in the database. Label = "norm" // 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" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldBase holds the string denoting the base field in the database. FieldBase = "base" // FieldMean holds the string denoting the mean field in the database. FieldMean = "mean" // FieldSigma holds the string denoting the sigma field in the database. FieldSigma = "sigma" // FieldRank holds the string denoting the rank field in the database. FieldRank = "rank" // FieldMeta holds the string denoting the meta field in the database. FieldMeta = "meta" // EdgeSample holds the string denoting the sample edge name in mutations. EdgeSample = "sample" // EdgeScale holds the string denoting the scale edge name in mutations. EdgeScale = "scale" // Table holds the table name of the norm in the database. Table = "norms" // SampleTable is the table that holds the sample relation/edge. SampleTable = "norms" // SampleInverseTable is the table name for the Sample entity. // It exists in this package in order to avoid circular dependency with the "sample" package. SampleInverseTable = "samples" // SampleColumn is the table column denoting the sample relation/edge. SampleColumn = "sample_norms" // ScaleTable is the table that holds the scale relation/edge. ScaleTable = "norms" // ScaleInverseTable is the table name for the Scale entity. // It exists in this package in order to avoid circular dependency with the "scale" package. ScaleInverseTable = "scales" // ScaleColumn is the table column denoting the scale relation/edge. ScaleColumn = "scale_norms" )
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 // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultBase holds the default value on creation for the "base" field. DefaultBase int // BaseValidator is a validator for the "base" field. It is called by the builders before save. BaseValidator func(int) error // DefaultRank holds the default value on creation for the "rank" field. DefaultRank int // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldName, FieldBase, FieldMean, FieldSigma, FieldRank, FieldMeta, }
Columns holds all SQL columns for norm fields.
var ForeignKeys = []string{
"sample_norms",
"scale_norms",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "norms" table and are not defined as standalone fields in the schema.
Functions ¶
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func HasSampleWith ¶
HasSampleWith applies the HasEdge predicate on the "sample" edge with a given conditions (other predicates).
func HasScaleWith ¶
HasScaleWith applies the HasEdge predicate on the "scale" edge with a given conditions (other predicates).
func MetaNotNil ¶
MetaNotNil applies the NotNil predicate on the "meta" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func Sigma ¶
Sigma applies equality check predicate on the "sigma" field. It's identical to SigmaEQ.
func SigmaNotIn ¶
SigmaNotIn applies the NotIn predicate on the "sigma" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
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 ¶
This section is empty.