norm

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for norm fields.

View Source
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 And

func And(predicates ...predicate.Norm) predicate.Norm

And groups predicates with the AND operator between them.

func Base

func Base(v int) predicate.Norm

Base applies equality check predicate on the "base" field. It's identical to BaseEQ.

func BaseEQ

func BaseEQ(v int) predicate.Norm

BaseEQ applies the EQ predicate on the "base" field.

func BaseGT

func BaseGT(v int) predicate.Norm

BaseGT applies the GT predicate on the "base" field.

func BaseGTE

func BaseGTE(v int) predicate.Norm

BaseGTE applies the GTE predicate on the "base" field.

func BaseIn

func BaseIn(vs ...int) predicate.Norm

BaseIn applies the In predicate on the "base" field.

func BaseLT

func BaseLT(v int) predicate.Norm

BaseLT applies the LT predicate on the "base" field.

func BaseLTE

func BaseLTE(v int) predicate.Norm

BaseLTE applies the LTE predicate on the "base" field.

func BaseNEQ

func BaseNEQ(v int) predicate.Norm

BaseNEQ applies the NEQ predicate on the "base" field.

func BaseNotIn

func BaseNotIn(vs ...int) predicate.Norm

BaseNotIn applies the NotIn predicate on the "base" field.

func CreateTime

func CreateTime(v time.Time) predicate.Norm

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Norm

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Norm

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Norm

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

func CreateTimeIn(vs ...time.Time) predicate.Norm

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Norm

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Norm

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Norm

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

func CreateTimeNotIn(vs ...time.Time) predicate.Norm

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func HasSample

func HasSample() predicate.Norm

HasSample applies the HasEdge predicate on the "sample" edge.

func HasSampleWith

func HasSampleWith(preds ...predicate.Sample) predicate.Norm

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

func HasScale

func HasScale() predicate.Norm

HasScale applies the HasEdge predicate on the "scale" edge.

func HasScaleWith

func HasScaleWith(preds ...predicate.Scale) predicate.Norm

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

func ID

func ID(id uuid.UUID) predicate.Norm

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Norm

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Norm

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Norm

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Norm

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Norm

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Norm

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Norm

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Norm

IDNotIn applies the NotIn predicate on the ID field.

func Mean

func Mean(v float64) predicate.Norm

Mean applies equality check predicate on the "mean" field. It's identical to MeanEQ.

func MeanEQ

func MeanEQ(v float64) predicate.Norm

MeanEQ applies the EQ predicate on the "mean" field.

func MeanGT

func MeanGT(v float64) predicate.Norm

MeanGT applies the GT predicate on the "mean" field.

func MeanGTE

func MeanGTE(v float64) predicate.Norm

MeanGTE applies the GTE predicate on the "mean" field.

func MeanIn

func MeanIn(vs ...float64) predicate.Norm

MeanIn applies the In predicate on the "mean" field.

func MeanLT

func MeanLT(v float64) predicate.Norm

MeanLT applies the LT predicate on the "mean" field.

func MeanLTE

func MeanLTE(v float64) predicate.Norm

MeanLTE applies the LTE predicate on the "mean" field.

func MeanNEQ

func MeanNEQ(v float64) predicate.Norm

MeanNEQ applies the NEQ predicate on the "mean" field.

func MeanNotIn

func MeanNotIn(vs ...float64) predicate.Norm

MeanNotIn applies the NotIn predicate on the "mean" field.

func MetaIsNil

func MetaIsNil() predicate.Norm

MetaIsNil applies the IsNil predicate on the "meta" field.

func MetaNotNil

func MetaNotNil() predicate.Norm

MetaNotNil applies the NotNil predicate on the "meta" field.

func Name

func Name(v string) predicate.Norm

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Norm

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Norm

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Norm

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Norm

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Norm

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Norm

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Norm

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Norm

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Norm

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Norm

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Norm

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Norm

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Norm

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Norm) predicate.Norm

Or groups predicates with the OR operator between them.

func Rank

func Rank(v int) predicate.Norm

Rank applies equality check predicate on the "rank" field. It's identical to RankEQ.

func RankEQ

func RankEQ(v int) predicate.Norm

RankEQ applies the EQ predicate on the "rank" field.

func RankGT

func RankGT(v int) predicate.Norm

RankGT applies the GT predicate on the "rank" field.

func RankGTE

func RankGTE(v int) predicate.Norm

RankGTE applies the GTE predicate on the "rank" field.

func RankIn

func RankIn(vs ...int) predicate.Norm

RankIn applies the In predicate on the "rank" field.

func RankLT

func RankLT(v int) predicate.Norm

RankLT applies the LT predicate on the "rank" field.

func RankLTE

func RankLTE(v int) predicate.Norm

RankLTE applies the LTE predicate on the "rank" field.

func RankNEQ

func RankNEQ(v int) predicate.Norm

RankNEQ applies the NEQ predicate on the "rank" field.

func RankNotIn

func RankNotIn(vs ...int) predicate.Norm

RankNotIn applies the NotIn predicate on the "rank" field.

func Sigma

func Sigma(v float64) predicate.Norm

Sigma applies equality check predicate on the "sigma" field. It's identical to SigmaEQ.

func SigmaEQ

func SigmaEQ(v float64) predicate.Norm

SigmaEQ applies the EQ predicate on the "sigma" field.

func SigmaGT

func SigmaGT(v float64) predicate.Norm

SigmaGT applies the GT predicate on the "sigma" field.

func SigmaGTE

func SigmaGTE(v float64) predicate.Norm

SigmaGTE applies the GTE predicate on the "sigma" field.

func SigmaIn

func SigmaIn(vs ...float64) predicate.Norm

SigmaIn applies the In predicate on the "sigma" field.

func SigmaLT

func SigmaLT(v float64) predicate.Norm

SigmaLT applies the LT predicate on the "sigma" field.

func SigmaLTE

func SigmaLTE(v float64) predicate.Norm

SigmaLTE applies the LTE predicate on the "sigma" field.

func SigmaNEQ

func SigmaNEQ(v float64) predicate.Norm

SigmaNEQ applies the NEQ predicate on the "sigma" field.

func SigmaNotIn

func SigmaNotIn(vs ...float64) predicate.Norm

SigmaNotIn applies the NotIn predicate on the "sigma" field.

func UpdateTime

func UpdateTime(v time.Time) predicate.Norm

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Norm

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Norm

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Norm

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn

func UpdateTimeIn(vs ...time.Time) predicate.Norm

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Norm

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Norm

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Norm

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn

func UpdateTimeNotIn(vs ...time.Time) predicate.Norm

UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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