item

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the item type in the database.
	Label = "item"
	// 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"
	// FieldValue holds the string denoting the value field in the database.
	FieldValue = "value"
	// FieldTimestamp holds the string denoting the timestamp field in the database.
	FieldTimestamp = "timestamp"
	// FieldMeta holds the string denoting the meta field in the database.
	FieldMeta = "meta"
	// EdgeDimensions holds the string denoting the dimensions edge name in mutations.
	EdgeDimensions = "dimensions"
	// EdgeTaskInstance holds the string denoting the task_instance edge name in mutations.
	EdgeTaskInstance = "task_instance"
	// EdgeMetric holds the string denoting the metric edge name in mutations.
	EdgeMetric = "metric"
	// Table holds the table name of the item in the database.
	Table = "items"
	// DimensionsTable is the table that holds the dimensions relation/edge. The primary key declared below.
	DimensionsTable = "item_dimensions"
	// DimensionsInverseTable is the table name for the Dimension entity.
	// It exists in this package in order to avoid circular dependency with the "dimension" package.
	DimensionsInverseTable = "dimensions"
	// TaskInstanceTable is the table that holds the task_instance relation/edge.
	TaskInstanceTable = "items"
	// TaskInstanceInverseTable is the table name for the TaskInstance entity.
	// It exists in this package in order to avoid circular dependency with the "taskinstance" package.
	TaskInstanceInverseTable = "task_instances"
	// TaskInstanceColumn is the table column denoting the task_instance relation/edge.
	TaskInstanceColumn = "task_instance_items"
	// MetricTable is the table that holds the metric relation/edge.
	MetricTable = "items"
	// MetricInverseTable is the table name for the Metric entity.
	// It exists in this package in order to avoid circular dependency with the "metric" package.
	MetricInverseTable = "metrics"
	// MetricColumn is the table column denoting the metric relation/edge.
	MetricColumn = "metric_items"
)

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
	// DefaultTimestamp holds the default value on creation for the "timestamp" field.
	DefaultTimestamp func() time.Time
)

Columns holds all SQL columns for item fields.

View Source
var (
	// DimensionsPrimaryKey and DimensionsColumn2 are the table columns denoting the
	// primary key for the dimensions relation (M2M).
	DimensionsPrimaryKey = []string{"item_id", "dimension_id"}
)
View Source
var ForeignKeys = []string{
	"metric_items",
	"task_instance_items",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "items" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Item) predicate.Item

And groups predicates with the AND operator between them.

func CreateTime

func CreateTime(v time.Time) predicate.Item

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

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Item

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

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Item

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

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Item

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

func CreateTimeIn

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

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

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Item

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

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Item

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

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Item

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

func CreateTimeNotIn

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

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

func HasDimensions

func HasDimensions() predicate.Item

HasDimensions applies the HasEdge predicate on the "dimensions" edge.

func HasDimensionsWith

func HasDimensionsWith(preds ...predicate.Dimension) predicate.Item

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

func HasMetric

func HasMetric() predicate.Item

HasMetric applies the HasEdge predicate on the "metric" edge.

func HasMetricWith

func HasMetricWith(preds ...predicate.Metric) predicate.Item

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

func HasTaskInstance

func HasTaskInstance() predicate.Item

HasTaskInstance applies the HasEdge predicate on the "task_instance" edge.

func HasTaskInstanceWith

func HasTaskInstanceWith(preds ...predicate.TaskInstance) predicate.Item

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

func ID

func ID(id int) predicate.Item

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Item

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Item

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Item

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Item

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Item

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Item

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Item

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Item

IDNotIn applies the NotIn predicate on the ID field.

func MetaIsNil

func MetaIsNil() predicate.Item

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

func MetaNotNil

func MetaNotNil() predicate.Item

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

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Item) predicate.Item

Or groups predicates with the OR operator between them.

func Timestamp

func Timestamp(v time.Time) predicate.Item

Timestamp applies equality check predicate on the "timestamp" field. It's identical to TimestampEQ.

func TimestampEQ

func TimestampEQ(v time.Time) predicate.Item

TimestampEQ applies the EQ predicate on the "timestamp" field.

func TimestampGT

func TimestampGT(v time.Time) predicate.Item

TimestampGT applies the GT predicate on the "timestamp" field.

func TimestampGTE

func TimestampGTE(v time.Time) predicate.Item

TimestampGTE applies the GTE predicate on the "timestamp" field.

func TimestampIn

func TimestampIn(vs ...time.Time) predicate.Item

TimestampIn applies the In predicate on the "timestamp" field.

func TimestampLT

func TimestampLT(v time.Time) predicate.Item

TimestampLT applies the LT predicate on the "timestamp" field.

func TimestampLTE

func TimestampLTE(v time.Time) predicate.Item

TimestampLTE applies the LTE predicate on the "timestamp" field.

func TimestampNEQ

func TimestampNEQ(v time.Time) predicate.Item

TimestampNEQ applies the NEQ predicate on the "timestamp" field.

func TimestampNotIn

func TimestampNotIn(vs ...time.Time) predicate.Item

TimestampNotIn applies the NotIn predicate on the "timestamp" field.

func UpdateTime

func UpdateTime(v time.Time) predicate.Item

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

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Item

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

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Item

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

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Item

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

func UpdateTimeIn

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

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

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Item

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

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Item

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

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Item

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

func UpdateTimeNotIn

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

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).

func Value

func Value(v float64) predicate.Item

Value applies equality check predicate on the "value" field. It's identical to ValueEQ.

func ValueEQ

func ValueEQ(v float64) predicate.Item

ValueEQ applies the EQ predicate on the "value" field.

func ValueGT

func ValueGT(v float64) predicate.Item

ValueGT applies the GT predicate on the "value" field.

func ValueGTE

func ValueGTE(v float64) predicate.Item

ValueGTE applies the GTE predicate on the "value" field.

func ValueIn

func ValueIn(vs ...float64) predicate.Item

ValueIn applies the In predicate on the "value" field.

func ValueLT

func ValueLT(v float64) predicate.Item

ValueLT applies the LT predicate on the "value" field.

func ValueLTE

func ValueLTE(v float64) predicate.Item

ValueLTE applies the LTE predicate on the "value" field.

func ValueNEQ

func ValueNEQ(v float64) predicate.Item

ValueNEQ applies the NEQ predicate on the "value" field.

func ValueNotIn

func ValueNotIn(vs ...float64) predicate.Item

ValueNotIn applies the NotIn predicate on the "value" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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