telegramuserstate

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

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

And groups predicates with the AND operator between them.

func Date

Date applies equality check predicate on the "date" field. It's identical to DateEQ.

func DateEQ

DateEQ applies the EQ predicate on the "date" field.

func DateGT

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

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

HasChannelsWith applies the HasEdge predicate on the "channels" 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 ...int64) predicate.TelegramUserState

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 ...int64) predicate.TelegramUserState

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.TelegramUserState

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.TelegramUserState

PtsNotIn applies the NotIn predicate on the "pts" field.

func Qts

Qts applies equality check predicate on the "qts" field. It's identical to QtsEQ.

func QtsEQ

QtsEQ applies the EQ predicate on the "qts" field.

func QtsGT

QtsGT applies the GT predicate on the "qts" field.

func QtsGTE

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

QtsLT applies the LT predicate on the "qts" field.

func QtsLTE

QtsLTE applies the LTE predicate on the "qts" field.

func QtsNEQ

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

Seq applies equality check predicate on the "seq" field. It's identical to SeqEQ.

func SeqEQ

SeqEQ applies the EQ predicate on the "seq" field.

func SeqGT

SeqGT applies the GT predicate on the "seq" field.

func SeqGTE

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

SeqLT applies the LT predicate on the "seq" field.

func SeqLTE

SeqLTE applies the LTE predicate on the "seq" field.

func SeqNEQ

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

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 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.

Jump to

Keyboard shortcuts

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