Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Counter) predicate.Counter
- func ID(id string) predicate.Counter
- func IDContainsFold(id string) predicate.Counter
- func IDEQ(id string) predicate.Counter
- func IDEqualFold(id string) predicate.Counter
- func IDGT(id string) predicate.Counter
- func IDGTE(id string) predicate.Counter
- func IDIn(ids ...string) predicate.Counter
- func IDLT(id string) predicate.Counter
- func IDLTE(id string) predicate.Counter
- func IDNEQ(id string) predicate.Counter
- func IDNotIn(ids ...string) predicate.Counter
- func Not(p predicate.Counter) predicate.Counter
- func Or(predicates ...predicate.Counter) predicate.Counter
- func ValidColumn(column string) bool
- func Value(v int64) predicate.Counter
- func ValueEQ(v int64) predicate.Counter
- func ValueGT(v int64) predicate.Counter
- func ValueGTE(v int64) predicate.Counter
- func ValueIn(vs ...int64) predicate.Counter
- func ValueLT(v int64) predicate.Counter
- func ValueLTE(v int64) predicate.Counter
- func ValueNEQ(v int64) predicate.Counter
- func ValueNotIn(vs ...int64) predicate.Counter
- type OrderOption
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" // FieldValue holds the string denoting the value field in the database. FieldValue = "value" // Table holds the table name of the counter in the database. Table = "counters" )
Variables ¶
View Source
var Columns = []string{ FieldID, FieldValue, }
Columns holds all SQL columns for counter fields.
Functions ¶
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID 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 ¶
type OrderOption ¶
OrderOption defines the ordering options for the Counter queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByValue ¶
func ByValue(opts ...sql.OrderTermOption) OrderOption
ByValue orders the results by the value field.
Click to show internal directories.
Click to hide internal directories.