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 ValidColumn(column string) bool
- 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
- func WID(v string) predicate.Gauge
- func WIDContains(v string) predicate.Gauge
- func WIDContainsFold(v string) predicate.Gauge
- func WIDEQ(v string) predicate.Gauge
- func WIDEqualFold(v string) predicate.Gauge
- func WIDGT(v string) predicate.Gauge
- func WIDGTE(v string) predicate.Gauge
- func WIDHasPrefix(v string) predicate.Gauge
- func WIDHasSuffix(v string) predicate.Gauge
- func WIDIn(vs ...string) predicate.Gauge
- func WIDLT(v string) predicate.Gauge
- func WIDLTE(v string) predicate.Gauge
- func WIDNEQ(v string) predicate.Gauge
- func WIDNotIn(vs ...string) predicate.Gauge
Constants ¶
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 field in the database. FieldTime = "time" // FieldValue holds the string denoting the value field in the database. FieldValue = "value" // FieldWID holds the string denoting the wid field in the database. FieldWID = "w_id" // 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 ¶
var Columns = []string{ FieldID, FieldTime, FieldValue, FieldWID, }
Columns holds all SQL columns for gauge fields.
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 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.
func WIDContains ¶
WIDContains applies the Contains predicate on the "wID" field.
func WIDContainsFold ¶
WIDContainsFold applies the ContainsFold predicate on the "wID" field.
func WIDEqualFold ¶
WIDEqualFold applies the EqualFold predicate on the "wID" field.
func WIDHasPrefix ¶
WIDHasPrefix applies the HasPrefix predicate on the "wID" field.
func WIDHasSuffix ¶
WIDHasSuffix applies the HasSuffix predicate on the "wID" field.
Types ¶
This section is empty.