Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.TelegramUserState) predicate.TelegramUserState
- func Date(v int) predicate.TelegramUserState
- func DateEQ(v int) predicate.TelegramUserState
- func DateGT(v int) predicate.TelegramUserState
- func DateGTE(v int) predicate.TelegramUserState
- func DateIn(vs ...int) predicate.TelegramUserState
- func DateLT(v int) predicate.TelegramUserState
- func DateLTE(v int) predicate.TelegramUserState
- func DateNEQ(v int) predicate.TelegramUserState
- func DateNotIn(vs ...int) predicate.TelegramUserState
- func HasChannels() predicate.TelegramUserState
- func HasChannelsWith(preds ...predicate.TelegramChannelState) predicate.TelegramUserState
- func ID(id int64) predicate.TelegramUserState
- func IDEQ(id int64) predicate.TelegramUserState
- func IDGT(id int64) predicate.TelegramUserState
- func IDGTE(id int64) predicate.TelegramUserState
- func IDIn(ids ...int64) predicate.TelegramUserState
- func IDLT(id int64) predicate.TelegramUserState
- func IDLTE(id int64) predicate.TelegramUserState
- func IDNEQ(id int64) predicate.TelegramUserState
- func IDNotIn(ids ...int64) predicate.TelegramUserState
- func Not(p predicate.TelegramUserState) predicate.TelegramUserState
- func Or(predicates ...predicate.TelegramUserState) predicate.TelegramUserState
- func Pts(v int) predicate.TelegramUserState
- func PtsEQ(v int) predicate.TelegramUserState
- func PtsGT(v int) predicate.TelegramUserState
- func PtsGTE(v int) predicate.TelegramUserState
- func PtsIn(vs ...int) predicate.TelegramUserState
- func PtsLT(v int) predicate.TelegramUserState
- func PtsLTE(v int) predicate.TelegramUserState
- func PtsNEQ(v int) predicate.TelegramUserState
- func PtsNotIn(vs ...int) predicate.TelegramUserState
- func Qts(v int) predicate.TelegramUserState
- func QtsEQ(v int) predicate.TelegramUserState
- func QtsGT(v int) predicate.TelegramUserState
- func QtsGTE(v int) predicate.TelegramUserState
- func QtsIn(vs ...int) predicate.TelegramUserState
- func QtsLT(v int) predicate.TelegramUserState
- func QtsLTE(v int) predicate.TelegramUserState
- func QtsNEQ(v int) predicate.TelegramUserState
- func QtsNotIn(vs ...int) predicate.TelegramUserState
- func Seq(v int) predicate.TelegramUserState
- func SeqEQ(v int) predicate.TelegramUserState
- func SeqGT(v int) predicate.TelegramUserState
- func SeqGTE(v int) predicate.TelegramUserState
- func SeqIn(vs ...int) predicate.TelegramUserState
- func SeqLT(v int) predicate.TelegramUserState
- func SeqLTE(v int) predicate.TelegramUserState
- func SeqNEQ(v int) predicate.TelegramUserState
- func SeqNotIn(vs ...int) predicate.TelegramUserState
- func ValidColumn(column string) bool
- type OrderOption
- func ByChannels(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByChannelsCount(opts ...sql.OrderTermOption) OrderOption
- func ByDate(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByPts(opts ...sql.OrderTermOption) OrderOption
- func ByQts(opts ...sql.OrderTermOption) OrderOption
- func BySeq(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the telegramuserstate type in the database. Label = "telegram_user_state" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldQts holds the string denoting the qts field in the database. FieldQts = "qts" // FieldPts holds the string denoting the pts field in the database. FieldPts = "pts" // FieldDate holds the string denoting the date field in the database. FieldDate = "date" // FieldSeq holds the string denoting the seq field in the database. FieldSeq = "seq" // EdgeChannels holds the string denoting the channels edge name in mutations. EdgeChannels = "channels" // Table holds the table name of the telegramuserstate in the database. Table = "telegram_user_states" // ChannelsTable is the table that holds the channels relation/edge. ChannelsTable = "telegram_channel_states" // ChannelsInverseTable is the table name for the TelegramChannelState entity. // It exists in this package in order to avoid circular dependency with the "telegramchannelstate" package. ChannelsInverseTable = "telegram_channel_states" // ChannelsColumn is the table column denoting the channels relation/edge. ChannelsColumn = "user_id" )
Variables ¶
var ( // DefaultQts holds the default value on creation for the "qts" field. DefaultQts int // DefaultPts holds the default value on creation for the "pts" field. DefaultPts int // DefaultDate holds the default value on creation for the "date" field. DefaultDate int // DefaultSeq holds the default value on creation for the "seq" field. DefaultSeq int )
Columns holds all SQL columns for telegramuserstate fields.
Functions ¶
func And ¶
func And(predicates ...predicate.TelegramUserState) predicate.TelegramUserState
And groups predicates with the AND operator between them.
func Date ¶
func Date(v int) predicate.TelegramUserState
Date applies equality check predicate on the "date" field. It's identical to DateEQ.
func DateEQ ¶
func DateEQ(v int) predicate.TelegramUserState
DateEQ applies the EQ predicate on the "date" field.
func DateGT ¶
func DateGT(v int) predicate.TelegramUserState
DateGT applies the GT predicate on the "date" field.
func DateGTE ¶
func DateGTE(v int) predicate.TelegramUserState
DateGTE applies the GTE predicate on the "date" field.
func DateIn ¶
func DateIn(vs ...int) predicate.TelegramUserState
DateIn applies the In predicate on the "date" field.
func DateLT ¶
func DateLT(v int) predicate.TelegramUserState
DateLT applies the LT predicate on the "date" field.
func DateLTE ¶
func DateLTE(v int) predicate.TelegramUserState
DateLTE applies the LTE predicate on the "date" field.
func DateNEQ ¶
func DateNEQ(v int) predicate.TelegramUserState
DateNEQ applies the NEQ predicate on the "date" field.
func DateNotIn ¶
func DateNotIn(vs ...int) predicate.TelegramUserState
DateNotIn applies the NotIn predicate on the "date" field.
func HasChannels ¶
func HasChannels() predicate.TelegramUserState
HasChannels applies the HasEdge predicate on the "channels" edge.
func HasChannelsWith ¶
func HasChannelsWith(preds ...predicate.TelegramChannelState) predicate.TelegramUserState
HasChannelsWith applies the HasEdge predicate on the "channels" edge with a given conditions (other predicates).
func ID ¶
func ID(id int64) predicate.TelegramUserState
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id int64) predicate.TelegramUserState
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int64) predicate.TelegramUserState
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int64) predicate.TelegramUserState
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int64) predicate.TelegramUserState
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int64) predicate.TelegramUserState
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int64) predicate.TelegramUserState
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int64) predicate.TelegramUserState
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int64) predicate.TelegramUserState
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.TelegramUserState) predicate.TelegramUserState
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.TelegramUserState) predicate.TelegramUserState
Or groups predicates with the OR operator between them.
func Pts ¶
func Pts(v int) predicate.TelegramUserState
Pts applies equality check predicate on the "pts" field. It's identical to PtsEQ.
func PtsEQ ¶
func PtsEQ(v int) predicate.TelegramUserState
PtsEQ applies the EQ predicate on the "pts" field.
func PtsGT ¶
func PtsGT(v int) predicate.TelegramUserState
PtsGT applies the GT predicate on the "pts" field.
func PtsGTE ¶
func PtsGTE(v int) predicate.TelegramUserState
PtsGTE applies the GTE predicate on the "pts" field.
func PtsIn ¶
func PtsIn(vs ...int) predicate.TelegramUserState
PtsIn applies the In predicate on the "pts" field.
func PtsLT ¶
func PtsLT(v int) predicate.TelegramUserState
PtsLT applies the LT predicate on the "pts" field.
func PtsLTE ¶
func PtsLTE(v int) predicate.TelegramUserState
PtsLTE applies the LTE predicate on the "pts" field.
func PtsNEQ ¶
func PtsNEQ(v int) predicate.TelegramUserState
PtsNEQ applies the NEQ predicate on the "pts" field.
func PtsNotIn ¶
func PtsNotIn(vs ...int) predicate.TelegramUserState
PtsNotIn applies the NotIn predicate on the "pts" field.
func Qts ¶
func Qts(v int) predicate.TelegramUserState
Qts applies equality check predicate on the "qts" field. It's identical to QtsEQ.
func QtsEQ ¶
func QtsEQ(v int) predicate.TelegramUserState
QtsEQ applies the EQ predicate on the "qts" field.
func QtsGT ¶
func QtsGT(v int) predicate.TelegramUserState
QtsGT applies the GT predicate on the "qts" field.
func QtsGTE ¶
func QtsGTE(v int) predicate.TelegramUserState
QtsGTE applies the GTE predicate on the "qts" field.
func QtsIn ¶
func QtsIn(vs ...int) predicate.TelegramUserState
QtsIn applies the In predicate on the "qts" field.
func QtsLT ¶
func QtsLT(v int) predicate.TelegramUserState
QtsLT applies the LT predicate on the "qts" field.
func QtsLTE ¶
func QtsLTE(v int) predicate.TelegramUserState
QtsLTE applies the LTE predicate on the "qts" field.
func QtsNEQ ¶
func QtsNEQ(v int) predicate.TelegramUserState
QtsNEQ applies the NEQ predicate on the "qts" field.
func QtsNotIn ¶
func QtsNotIn(vs ...int) predicate.TelegramUserState
QtsNotIn applies the NotIn predicate on the "qts" field.
func Seq ¶
func Seq(v int) predicate.TelegramUserState
Seq applies equality check predicate on the "seq" field. It's identical to SeqEQ.
func SeqEQ ¶
func SeqEQ(v int) predicate.TelegramUserState
SeqEQ applies the EQ predicate on the "seq" field.
func SeqGT ¶
func SeqGT(v int) predicate.TelegramUserState
SeqGT applies the GT predicate on the "seq" field.
func SeqGTE ¶
func SeqGTE(v int) predicate.TelegramUserState
SeqGTE applies the GTE predicate on the "seq" field.
func SeqIn ¶
func SeqIn(vs ...int) predicate.TelegramUserState
SeqIn applies the In predicate on the "seq" field.
func SeqLT ¶
func SeqLT(v int) predicate.TelegramUserState
SeqLT applies the LT predicate on the "seq" field.
func SeqLTE ¶
func SeqLTE(v int) predicate.TelegramUserState
SeqLTE applies the LTE predicate on the "seq" field.
func SeqNEQ ¶
func SeqNEQ(v int) predicate.TelegramUserState
SeqNEQ applies the NEQ predicate on the "seq" field.
func SeqNotIn ¶
func SeqNotIn(vs ...int) predicate.TelegramUserState
SeqNotIn applies the NotIn predicate on the "seq" 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 TelegramUserState queries.
func ByChannels ¶
func ByChannels(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByChannels orders the results by channels terms.
func ByChannelsCount ¶
func ByChannelsCount(opts ...sql.OrderTermOption) OrderOption
ByChannelsCount orders the results by channels count.
func ByDate ¶
func ByDate(opts ...sql.OrderTermOption) OrderOption
ByDate orders the results by the date field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByPts ¶
func ByPts(opts ...sql.OrderTermOption) OrderOption
ByPts orders the results by the pts field.
func ByQts ¶
func ByQts(opts ...sql.OrderTermOption) OrderOption
ByQts orders the results by the qts field.
func BySeq ¶
func BySeq(opts ...sql.OrderTermOption) OrderOption
BySeq orders the results by the seq field.