Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Counter) predicate.Counter
- func Count(v int64) predicate.Counter
- func CountEQ(v int64) predicate.Counter
- func CountGT(v int64) predicate.Counter
- func CountGTE(v int64) predicate.Counter
- func CountIn(vs ...int64) predicate.Counter
- func CountLT(v int64) predicate.Counter
- func CountLTE(v int64) predicate.Counter
- func CountNEQ(v int64) predicate.Counter
- func CountNotIn(vs ...int64) predicate.Counter
- func HasMetric() predicate.Counter
- func HasMetricWith(preds ...predicate.Metric) predicate.Counter
- func ID(id int) predicate.Counter
- func IDEQ(id int) predicate.Counter
- func IDGT(id int) predicate.Counter
- func IDGTE(id int) predicate.Counter
- func IDIn(ids ...int) predicate.Counter
- func IDLT(id int) predicate.Counter
- func IDLTE(id int) predicate.Counter
- func IDNEQ(id int) predicate.Counter
- func IDNotIn(ids ...int) predicate.Counter
- func Not(p predicate.Counter) predicate.Counter
- func Or(predicates ...predicate.Counter) predicate.Counter
- func Time(v int64) predicate.Counter
- func TimeEQ(v int64) predicate.Counter
- func TimeGT(v int64) predicate.Counter
- func TimeGTE(v int64) predicate.Counter
- func TimeIn(vs ...int64) predicate.Counter
- func TimeLT(v int64) predicate.Counter
- func TimeLTE(v int64) predicate.Counter
- func TimeNEQ(v int64) predicate.Counter
- func TimeNotIn(vs ...int64) predicate.Counter
Constants ¶
View Source
const ( // Label holds the string label denoting the counter type in the database. Label = "counter" // 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" // FieldCount holds the string denoting the count vertex property in the database. FieldCount = "count" // EdgeMetric holds the string denoting the metric edge name in mutations. EdgeMetric = "metric" // Table holds the table name of the counter in the database. Table = "counters" // MetricTable is the table the holds the metric relation/edge. MetricTable = "counters" // 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_counters" )
Variables ¶
View Source
var Columns = []string{ FieldID, FieldTime, FieldCount, }
Columns holds all SQL columns for counter fields.
View Source
var ForeignKeys = []string{
"metric_counters",
}
ForeignKeys holds the SQL foreign-keys that are owned by the Counter type.
Functions ¶
func Count ¶
Count applies equality check predicate on the "count" field. It's identical to CountEQ.
func CountNotIn ¶
CountNotIn applies the NotIn predicate on the "count" field.
func HasMetricWith ¶
HasMetricWith applies the HasEdge predicate on the "metric" edge with a given conditions (other predicates).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.