Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Gauge) predicate.Gauge
- func HasMetric() predicate.Gauge
- func HasMetricWith(preds ...predicate.Metric) predicate.Gauge
- func ID(id int) predicate.Gauge
- func IDEQ(id int) predicate.Gauge
- func IDGT(id int) predicate.Gauge
- func IDGTE(id int) predicate.Gauge
- func IDIn(ids ...int) predicate.Gauge
- func IDLT(id int) predicate.Gauge
- func IDLTE(id int) predicate.Gauge
- func IDNEQ(id int) predicate.Gauge
- func IDNotIn(ids ...int) predicate.Gauge
- func Not(p predicate.Gauge) predicate.Gauge
- func Or(predicates ...predicate.Gauge) predicate.Gauge
- func Time(v int64) predicate.Gauge
- func TimeEQ(v int64) predicate.Gauge
- func TimeGT(v int64) predicate.Gauge
- func TimeGTE(v int64) predicate.Gauge
- func TimeIn(vs ...int64) predicate.Gauge
- func TimeLT(v int64) predicate.Gauge
- func TimeLTE(v int64) predicate.Gauge
- func TimeNEQ(v int64) predicate.Gauge
- func TimeNotIn(vs ...int64) predicate.Gauge
- func Value(v int64) predicate.Gauge
- func ValueEQ(v int64) predicate.Gauge
- func ValueGT(v int64) predicate.Gauge
- func ValueGTE(v int64) predicate.Gauge
- func ValueIn(vs ...int64) predicate.Gauge
- func ValueLT(v int64) predicate.Gauge
- func ValueLTE(v int64) predicate.Gauge
- func ValueNEQ(v int64) predicate.Gauge
- func ValueNotIn(vs ...int64) predicate.Gauge
Constants ¶
View Source
const ( // Label holds the string label denoting the gauge type in the database. Label = "gauge" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldTime holds the string denoting the time vertex property in the database. FieldTime = "time" // FieldValue holds the string denoting the value vertex property in the database. FieldValue = "value" // EdgeMetric holds the string denoting the metric edge name in mutations. EdgeMetric = "metric" // Table holds the table name of the gauge in the database. Table = "gauges" // MetricTable is the table the holds the metric relation/edge. MetricTable = "gauges" // 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_gauges" )
Variables ¶
View Source
var Columns = []string{ FieldID, FieldTime, FieldValue, }
Columns holds all SQL columns for gauge fields.
View Source
var ForeignKeys = []string{
"metric_gauges",
}
ForeignKeys holds the SQL foreign-keys that are owned by the Gauge type.
Functions ¶
func HasMetricWith ¶
HasMetricWith applies the HasEdge predicate on the "metric" edge with a given conditions (other predicates).
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.
Click to show internal directories.
Click to hide internal directories.