Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Item) predicate.Item
- func CreateTime(v time.Time) predicate.Item
- func CreateTimeEQ(v time.Time) predicate.Item
- func CreateTimeGT(v time.Time) predicate.Item
- func CreateTimeGTE(v time.Time) predicate.Item
- func CreateTimeIn(vs ...time.Time) predicate.Item
- func CreateTimeLT(v time.Time) predicate.Item
- func CreateTimeLTE(v time.Time) predicate.Item
- func CreateTimeNEQ(v time.Time) predicate.Item
- func CreateTimeNotIn(vs ...time.Time) predicate.Item
- func HasDimensions() predicate.Item
- func HasDimensionsWith(preds ...predicate.Dimension) predicate.Item
- func HasMetric() predicate.Item
- func HasMetricWith(preds ...predicate.Metric) predicate.Item
- func HasTaskInstance() predicate.Item
- func HasTaskInstanceWith(preds ...predicate.TaskInstance) predicate.Item
- func ID(id int) predicate.Item
- func IDEQ(id int) predicate.Item
- func IDGT(id int) predicate.Item
- func IDGTE(id int) predicate.Item
- func IDIn(ids ...int) predicate.Item
- func IDLT(id int) predicate.Item
- func IDLTE(id int) predicate.Item
- func IDNEQ(id int) predicate.Item
- func IDNotIn(ids ...int) predicate.Item
- func MetaIsNil() predicate.Item
- func MetaNotNil() predicate.Item
- func Not(p predicate.Item) predicate.Item
- func Or(predicates ...predicate.Item) predicate.Item
- func Timestamp(v time.Time) predicate.Item
- func TimestampEQ(v time.Time) predicate.Item
- func TimestampGT(v time.Time) predicate.Item
- func TimestampGTE(v time.Time) predicate.Item
- func TimestampIn(vs ...time.Time) predicate.Item
- func TimestampLT(v time.Time) predicate.Item
- func TimestampLTE(v time.Time) predicate.Item
- func TimestampNEQ(v time.Time) predicate.Item
- func TimestampNotIn(vs ...time.Time) predicate.Item
- func UpdateTime(v time.Time) predicate.Item
- func UpdateTimeEQ(v time.Time) predicate.Item
- func UpdateTimeGT(v time.Time) predicate.Item
- func UpdateTimeGTE(v time.Time) predicate.Item
- func UpdateTimeIn(vs ...time.Time) predicate.Item
- func UpdateTimeLT(v time.Time) predicate.Item
- func UpdateTimeLTE(v time.Time) predicate.Item
- func UpdateTimeNEQ(v time.Time) predicate.Item
- func UpdateTimeNotIn(vs ...time.Time) predicate.Item
- func ValidColumn(column string) bool
- func Value(v float64) predicate.Item
- func ValueEQ(v float64) predicate.Item
- func ValueGT(v float64) predicate.Item
- func ValueGTE(v float64) predicate.Item
- func ValueIn(vs ...float64) predicate.Item
- func ValueLT(v float64) predicate.Item
- func ValueLTE(v float64) predicate.Item
- func ValueNEQ(v float64) predicate.Item
- func ValueNotIn(vs ...float64) predicate.Item
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldValue, FieldTimestamp, FieldMeta, }
Columns holds all SQL columns for item fields.
var ( // DimensionsPrimaryKey and DimensionsColumn2 are the table columns denoting the // primary key for the dimensions relation (M2M). DimensionsPrimaryKey = []string{"item_id", "dimension_id"} )
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 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 HasDimensions ¶
HasDimensions applies the HasEdge predicate on the "dimensions" edge.
func HasDimensionsWith ¶
HasDimensionsWith applies the HasEdge predicate on the "dimensions" edge with a given conditions (other predicates).
func HasMetricWith ¶
HasMetricWith applies the HasEdge predicate on the "metric" edge with a given conditions (other predicates).
func HasTaskInstance ¶
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 MetaNotNil ¶
MetaNotNil applies the NotNil predicate on the "meta" field.
func Timestamp ¶
Timestamp applies equality check predicate on the "timestamp" field. It's identical to TimestampEQ.
func TimestampEQ ¶
TimestampEQ applies the EQ predicate on the "timestamp" field.
func TimestampGT ¶
TimestampGT applies the GT predicate on the "timestamp" field.
func TimestampGTE ¶
TimestampGTE applies the GTE predicate on the "timestamp" field.
func TimestampIn ¶
TimestampIn applies the In predicate on the "timestamp" field.
func TimestampLT ¶
TimestampLT applies the LT predicate on the "timestamp" field.
func TimestampLTE ¶
TimestampLTE applies the LTE predicate on the "timestamp" field.
func TimestampNEQ ¶
TimestampNEQ applies the NEQ predicate on the "timestamp" field.
func TimestampNotIn ¶
TimestampNotIn applies the NotIn predicate on the "timestamp" 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).
func Value ¶
Value applies equality check predicate on the "value" field. It's identical to ValueEQ.
func ValueNotIn ¶
ValueNotIn applies the NotIn predicate on the "value" field.
Types ¶
This section is empty.