Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Weight) predicate.Weight
- func ID(id int) predicate.Weight
- func IDEQ(id int) predicate.Weight
- func IDGT(id int) predicate.Weight
- func IDGTE(id int) predicate.Weight
- func IDIn(ids ...int) predicate.Weight
- func IDLT(id int) predicate.Weight
- func IDLTE(id int) predicate.Weight
- func IDNEQ(id int) predicate.Weight
- func IDNotIn(ids ...int) predicate.Weight
- func Not(p predicate.Weight) predicate.Weight
- func Or(predicates ...predicate.Weight) predicate.Weight
- func Timestamp(v time.Time) predicate.Weight
- func TimestampEQ(v time.Time) predicate.Weight
- func TimestampGT(v time.Time) predicate.Weight
- func TimestampGTE(v time.Time) predicate.Weight
- func TimestampIn(vs ...time.Time) predicate.Weight
- func TimestampLT(v time.Time) predicate.Weight
- func TimestampLTE(v time.Time) predicate.Weight
- func TimestampNEQ(v time.Time) predicate.Weight
- func TimestampNotIn(vs ...time.Time) predicate.Weight
- func Userid(v int64) predicate.Weight
- func UseridEQ(v int64) predicate.Weight
- func UseridGT(v int64) predicate.Weight
- func UseridGTE(v int64) predicate.Weight
- func UseridIn(vs ...int64) predicate.Weight
- func UseridLT(v int64) predicate.Weight
- func UseridLTE(v int64) predicate.Weight
- func UseridNEQ(v int64) predicate.Weight
- func UseridNotIn(vs ...int64) predicate.Weight
- func ValidColumn(column string) bool
- func Value(v float64) predicate.Weight
- func ValueEQ(v float64) predicate.Weight
- func ValueGT(v float64) predicate.Weight
- func ValueGTE(v float64) predicate.Weight
- func ValueIn(vs ...float64) predicate.Weight
- func ValueLT(v float64) predicate.Weight
- func ValueLTE(v float64) predicate.Weight
- func ValueNEQ(v float64) predicate.Weight
- func ValueNotIn(vs ...float64) predicate.Weight
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the weight type in the database. Label = "weight" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldUserid holds the string denoting the userid field in the database. FieldUserid = "userid" // FieldTimestamp holds the string denoting the timestamp field in the database. FieldTimestamp = "timestamp" // FieldValue holds the string denoting the value field in the database. FieldValue = "value" // Table holds the table name of the weight in the database. Table = "weights" )
Variables ¶
var Columns = []string{ FieldID, FieldUserid, FieldTimestamp, FieldValue, }
Columns holds all SQL columns for weight fields.
Functions ¶
func Timestamp ¶
Timestamp applies equality check predicate on the "timestamp" field. It's identical to TimestampEQ.
func TimestampEQ ¶
TimestampEQ applies the EQ predicate on the "timestamp" field.
func TimestampGT ¶
TimestampGT applies the GT predicate on the "timestamp" field.
func TimestampGTE ¶
TimestampGTE applies the GTE predicate on the "timestamp" field.
func TimestampIn ¶
TimestampIn applies the In predicate on the "timestamp" field.
func TimestampLT ¶
TimestampLT applies the LT predicate on the "timestamp" field.
func TimestampLTE ¶
TimestampLTE applies the LTE predicate on the "timestamp" field.
func TimestampNEQ ¶
TimestampNEQ applies the NEQ predicate on the "timestamp" field.
func TimestampNotIn ¶
TimestampNotIn applies the NotIn predicate on the "timestamp" field.
func Userid ¶
Userid applies equality check predicate on the "userid" field. It's identical to UseridEQ.
func UseridNotIn ¶
UseridNotIn applies the NotIn predicate on the "userid" 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 Weight queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByTimestamp ¶
func ByTimestamp(opts ...sql.OrderTermOption) OrderOption
ByTimestamp orders the results by the timestamp field.
func ByUserid ¶
func ByUserid(opts ...sql.OrderTermOption) OrderOption
ByUserid orders the results by the userid field.
func ByValue ¶
func ByValue(opts ...sql.OrderTermOption) OrderOption
ByValue orders the results by the value field.