Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.TelegramChannelState) predicate.TelegramChannelState
- func ChannelID(v int64) predicate.TelegramChannelState
- func ChannelIDEQ(v int64) predicate.TelegramChannelState
- func ChannelIDGT(v int64) predicate.TelegramChannelState
- func ChannelIDGTE(v int64) predicate.TelegramChannelState
- func ChannelIDIn(vs ...int64) predicate.TelegramChannelState
- func ChannelIDLT(v int64) predicate.TelegramChannelState
- func ChannelIDLTE(v int64) predicate.TelegramChannelState
- func ChannelIDNEQ(v int64) predicate.TelegramChannelState
- func ChannelIDNotIn(vs ...int64) predicate.TelegramChannelState
- func HasUser() predicate.TelegramChannelState
- func HasUserWith(preds ...predicate.TelegramUserState) predicate.TelegramChannelState
- func ID(id int) predicate.TelegramChannelState
- func IDEQ(id int) predicate.TelegramChannelState
- func IDGT(id int) predicate.TelegramChannelState
- func IDGTE(id int) predicate.TelegramChannelState
- func IDIn(ids ...int) predicate.TelegramChannelState
- func IDLT(id int) predicate.TelegramChannelState
- func IDLTE(id int) predicate.TelegramChannelState
- func IDNEQ(id int) predicate.TelegramChannelState
- func IDNotIn(ids ...int) predicate.TelegramChannelState
- func Not(p predicate.TelegramChannelState) predicate.TelegramChannelState
- func Or(predicates ...predicate.TelegramChannelState) predicate.TelegramChannelState
- func Pts(v int) predicate.TelegramChannelState
- func PtsEQ(v int) predicate.TelegramChannelState
- func PtsGT(v int) predicate.TelegramChannelState
- func PtsGTE(v int) predicate.TelegramChannelState
- func PtsIn(vs ...int) predicate.TelegramChannelState
- func PtsLT(v int) predicate.TelegramChannelState
- func PtsLTE(v int) predicate.TelegramChannelState
- func PtsNEQ(v int) predicate.TelegramChannelState
- func PtsNotIn(vs ...int) predicate.TelegramChannelState
- func UserID(v int64) predicate.TelegramChannelState
- func UserIDEQ(v int64) predicate.TelegramChannelState
- func UserIDIn(vs ...int64) predicate.TelegramChannelState
- func UserIDNEQ(v int64) predicate.TelegramChannelState
- func UserIDNotIn(vs ...int64) predicate.TelegramChannelState
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the telegramchannelstate type in the database. Label = "telegram_channel_state" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldChannelID holds the string denoting the channel_id field in the database. FieldChannelID = "channel_id" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldPts holds the string denoting the pts field in the database. FieldPts = "pts" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the telegramchannelstate in the database. Table = "telegram_channel_states" // UserTable is the table that holds the user relation/edge. UserTable = "telegram_channel_states" // UserInverseTable is the table name for the TelegramUserState entity. // It exists in this package in order to avoid circular dependency with the "telegramuserstate" package. UserInverseTable = "telegram_user_states" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_id" )
Variables ¶
var Columns = []string{ FieldID, FieldChannelID, FieldUserID, FieldPts, }
Columns holds all SQL columns for telegramchannelstate fields.
var ( // DefaultPts holds the default value on creation for the "pts" field. DefaultPts int )
Functions ¶
func And ¶
func And(predicates ...predicate.TelegramChannelState) predicate.TelegramChannelState
And groups predicates with the AND operator between them.
func ChannelID ¶
func ChannelID(v int64) predicate.TelegramChannelState
ChannelID applies equality check predicate on the "channel_id" field. It's identical to ChannelIDEQ.
func ChannelIDEQ ¶
func ChannelIDEQ(v int64) predicate.TelegramChannelState
ChannelIDEQ applies the EQ predicate on the "channel_id" field.
func ChannelIDGT ¶
func ChannelIDGT(v int64) predicate.TelegramChannelState
ChannelIDGT applies the GT predicate on the "channel_id" field.
func ChannelIDGTE ¶
func ChannelIDGTE(v int64) predicate.TelegramChannelState
ChannelIDGTE applies the GTE predicate on the "channel_id" field.
func ChannelIDIn ¶
func ChannelIDIn(vs ...int64) predicate.TelegramChannelState
ChannelIDIn applies the In predicate on the "channel_id" field.
func ChannelIDLT ¶
func ChannelIDLT(v int64) predicate.TelegramChannelState
ChannelIDLT applies the LT predicate on the "channel_id" field.
func ChannelIDLTE ¶
func ChannelIDLTE(v int64) predicate.TelegramChannelState
ChannelIDLTE applies the LTE predicate on the "channel_id" field.
func ChannelIDNEQ ¶
func ChannelIDNEQ(v int64) predicate.TelegramChannelState
ChannelIDNEQ applies the NEQ predicate on the "channel_id" field.
func ChannelIDNotIn ¶
func ChannelIDNotIn(vs ...int64) predicate.TelegramChannelState
ChannelIDNotIn applies the NotIn predicate on the "channel_id" field.
func HasUser ¶
func HasUser() predicate.TelegramChannelState
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.TelegramUserState) predicate.TelegramChannelState
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func ID ¶
func ID(id int) predicate.TelegramChannelState
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id int) predicate.TelegramChannelState
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.TelegramChannelState
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.TelegramChannelState
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.TelegramChannelState
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.TelegramChannelState
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.TelegramChannelState
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.TelegramChannelState
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.TelegramChannelState
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.TelegramChannelState) predicate.TelegramChannelState
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.TelegramChannelState) predicate.TelegramChannelState
Or groups predicates with the OR operator between them.
func Pts ¶
func Pts(v int) predicate.TelegramChannelState
Pts applies equality check predicate on the "pts" field. It's identical to PtsEQ.
func PtsEQ ¶
func PtsEQ(v int) predicate.TelegramChannelState
PtsEQ applies the EQ predicate on the "pts" field.
func PtsGT ¶
func PtsGT(v int) predicate.TelegramChannelState
PtsGT applies the GT predicate on the "pts" field.
func PtsGTE ¶
func PtsGTE(v int) predicate.TelegramChannelState
PtsGTE applies the GTE predicate on the "pts" field.
func PtsIn ¶
func PtsIn(vs ...int) predicate.TelegramChannelState
PtsIn applies the In predicate on the "pts" field.
func PtsLT ¶
func PtsLT(v int) predicate.TelegramChannelState
PtsLT applies the LT predicate on the "pts" field.
func PtsLTE ¶
func PtsLTE(v int) predicate.TelegramChannelState
PtsLTE applies the LTE predicate on the "pts" field.
func PtsNEQ ¶
func PtsNEQ(v int) predicate.TelegramChannelState
PtsNEQ applies the NEQ predicate on the "pts" field.
func PtsNotIn ¶
func PtsNotIn(vs ...int) predicate.TelegramChannelState
PtsNotIn applies the NotIn predicate on the "pts" field.
func UserID ¶
func UserID(v int64) predicate.TelegramChannelState
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDEQ ¶
func UserIDEQ(v int64) predicate.TelegramChannelState
UserIDEQ applies the EQ predicate on the "user_id" field.
func UserIDIn ¶
func UserIDIn(vs ...int64) predicate.TelegramChannelState
UserIDIn applies the In predicate on the "user_id" field.
func UserIDNEQ ¶
func UserIDNEQ(v int64) predicate.TelegramChannelState
UserIDNEQ applies the NEQ predicate on the "user_id" field.
func UserIDNotIn ¶
func UserIDNotIn(vs ...int64) predicate.TelegramChannelState
UserIDNotIn applies the NotIn predicate on the "user_id" 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 TelegramChannelState queries.
func ByChannelID ¶
func ByChannelID(opts ...sql.OrderTermOption) OrderOption
ByChannelID orders the results by the channel_id 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 ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.
func ByUserID ¶
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.