correlation

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: May 16, 2021 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const DefaultGranularity = GranularityDay

GranularityDay is the default value of the Granularity enum.

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
	// TypeValidator is a validator for the "type" field. It is called by the builders before save.
	TypeValidator func(string) error
)

Columns holds all SQL columns for correlation fields.

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

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 ID

func ID(id int) predicate.Correlation

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Correlation

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Correlation

IDGT applies the GT predicate on the ID field.

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 IDLT

func IDLT(id int) predicate.Correlation

IDLT applies the LT 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

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

P applies equality check predicate on the "p" field. It's identical to PEQ.

func PEQ

PEQ applies the EQ predicate on the "p" field.

func PGT

PGT applies the GT predicate on the "p" field.

func PGTE

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 PLT

PLT applies the LT predicate on the "p" field.

func PLTE

PLTE applies the LTE predicate on the "p" field.

func PNEQ

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

R2 applies equality check predicate on the "r2" field. It's identical to R2EQ.

func R2EQ

R2EQ applies the EQ predicate on the "r2" field.

func R2GT

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

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

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

func ValidColumn(column string) bool

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

Jump to

Keyboard shortcuts

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