telegramchannelstate

package
v0.0.0-...-5feaf8d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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

Columns holds all SQL columns for telegramchannelstate fields.

View Source
var (
	// DefaultPts holds the default value on creation for the "pts" field.
	DefaultPts int
)

Functions

func And

And groups predicates with the AND operator between them.

func ChannelID

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

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

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

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

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

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func Pts

Pts applies equality check predicate on the "pts" field. It's identical to PtsEQ.

func PtsEQ

PtsEQ applies the EQ predicate on the "pts" field.

func PtsGT

PtsGT applies the GT predicate on the "pts" field.

func PtsGTE

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

PtsLT applies the LT predicate on the "pts" field.

func PtsLTE

PtsLTE applies the LTE predicate on the "pts" field.

func PtsNEQ

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

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDEQ

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

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

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL