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
- func ValidColumn(column string) bool
- func WID(v string) predicate.Counter
- func WIDContains(v string) predicate.Counter
- func WIDContainsFold(v string) predicate.Counter
- func WIDEQ(v string) predicate.Counter
- func WIDEqualFold(v string) predicate.Counter
- func WIDGT(v string) predicate.Counter
- func WIDGTE(v string) predicate.Counter
- func WIDHasPrefix(v string) predicate.Counter
- func WIDHasSuffix(v string) predicate.Counter
- func WIDIn(vs ...string) predicate.Counter
- func WIDLT(v string) predicate.Counter
- func WIDLTE(v string) predicate.Counter
- func WIDNEQ(v string) predicate.Counter
- func WIDNotIn(vs ...string) predicate.Counter
Constants ¶
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 field in the database. FieldTime = "time" // FieldCount holds the string denoting the count field in the database. FieldCount = "count" // 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 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 ¶
var Columns = []string{ FieldID, FieldTime, FieldCount, FieldWID, }
Columns holds all SQL columns for counter fields.
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).
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
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.