Documentation
¶
Index ¶
- Constants
- Variables
- func ActiveCal(v float64) predicate.Activity
- func ActiveCalEQ(v float64) predicate.Activity
- func ActiveCalGT(v float64) predicate.Activity
- func ActiveCalGTE(v float64) predicate.Activity
- func ActiveCalIn(vs ...float64) predicate.Activity
- func ActiveCalLT(v float64) predicate.Activity
- func ActiveCalLTE(v float64) predicate.Activity
- func ActiveCalNEQ(v float64) predicate.Activity
- func ActiveCalNotIn(vs ...float64) predicate.Activity
- func And(predicates ...predicate.Activity) predicate.Activity
- func ID(id int) predicate.Activity
- func IDEQ(id int) predicate.Activity
- func IDGT(id int) predicate.Activity
- func IDGTE(id int) predicate.Activity
- func IDIn(ids ...int) predicate.Activity
- func IDLT(id int) predicate.Activity
- func IDLTE(id int) predicate.Activity
- func IDNEQ(id int) predicate.Activity
- func IDNotIn(ids ...int) predicate.Activity
- func Not(p predicate.Activity) predicate.Activity
- func Or(predicates ...predicate.Activity) predicate.Activity
- func Timestamp(v time.Time) predicate.Activity
- func TimestampEQ(v time.Time) predicate.Activity
- func TimestampGT(v time.Time) predicate.Activity
- func TimestampGTE(v time.Time) predicate.Activity
- func TimestampIn(vs ...time.Time) predicate.Activity
- func TimestampLT(v time.Time) predicate.Activity
- func TimestampLTE(v time.Time) predicate.Activity
- func TimestampNEQ(v time.Time) predicate.Activity
- func TimestampNotIn(vs ...time.Time) predicate.Activity
- func Userid(v int64) predicate.Activity
- func UseridEQ(v int64) predicate.Activity
- func UseridGT(v int64) predicate.Activity
- func UseridGTE(v int64) predicate.Activity
- func UseridIn(vs ...int64) predicate.Activity
- func UseridLT(v int64) predicate.Activity
- func UseridLTE(v int64) predicate.Activity
- func UseridNEQ(v int64) predicate.Activity
- func UseridNotIn(vs ...int64) predicate.Activity
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the activity type in the database. Label = "activity" // 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" // FieldActiveCal holds the string denoting the active_cal field in the database. FieldActiveCal = "active_cal" // Table holds the table name of the activity in the database. Table = "activities" )
Variables ¶
var Columns = []string{ FieldID, FieldUserid, FieldTimestamp, FieldActiveCal, }
Columns holds all SQL columns for activity fields.
Functions ¶
func ActiveCal ¶
ActiveCal applies equality check predicate on the "active_cal" field. It's identical to ActiveCalEQ.
func ActiveCalEQ ¶
ActiveCalEQ applies the EQ predicate on the "active_cal" field.
func ActiveCalGT ¶
ActiveCalGT applies the GT predicate on the "active_cal" field.
func ActiveCalGTE ¶
ActiveCalGTE applies the GTE predicate on the "active_cal" field.
func ActiveCalIn ¶
ActiveCalIn applies the In predicate on the "active_cal" field.
func ActiveCalLT ¶
ActiveCalLT applies the LT predicate on the "active_cal" field.
func ActiveCalLTE ¶
ActiveCalLTE applies the LTE predicate on the "active_cal" field.
func ActiveCalNEQ ¶
ActiveCalNEQ applies the NEQ predicate on the "active_cal" field.
func ActiveCalNotIn ¶
ActiveCalNotIn applies the NotIn predicate on the "active_cal" field.
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).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Activity queries.
func ByActiveCal ¶
func ByActiveCal(opts ...sql.OrderTermOption) OrderOption
ByActiveCal orders the results by the active_cal field.
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.