statistic

package
v0.0.0-...-a9b63ba Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the statistic type in the database.
	Label = "statistic"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldFirstName holds the string denoting the first_name field in the database.
	FieldFirstName = "first_name"
	// FieldLatName holds the string denoting the lat_name field in the database.
	FieldLatName = "lat_name"
	// FieldUserName holds the string denoting the user_name field in the database.
	FieldUserName = "user_name"
	// FieldFromUser holds the string denoting the from_user field in the database.
	FieldFromUser = "from_user"
	// 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"
	// FieldJoinTime holds the string denoting the join_time field in the database.
	FieldJoinTime = "join_time"
	// FieldInvited holds the string denoting the invited field in the database.
	FieldInvited = "invited"
	// FieldMessage holds the string denoting the message field in the database.
	FieldMessage = "message"
	// FieldLastMessage holds the string denoting the last_message field in the database.
	FieldLastMessage = "last_message"
	// Table holds the table name of the statistic in the database.
	Table = "statistics"
)

Variables

View Source
var (
	// DefaultFirstName holds the default value on creation for the "first_name" field.
	DefaultFirstName string
	// DefaultLatName holds the default value on creation for the "lat_name" field.
	DefaultLatName string
	// DefaultUserName holds the default value on creation for the "user_name" field.
	DefaultUserName string
	// DefaultFromUser holds the default value on creation for the "from_user" field.
	DefaultFromUser int
	// DefaultChannelID holds the default value on creation for the "channel_id" field.
	DefaultChannelID int64
	// DefaultUserID holds the default value on creation for the "user_id" field.
	DefaultUserID int
	// DefaultJoinTime holds the default value on creation for the "join_time" field.
	DefaultJoinTime func() time.Time
	// DefaultInvited holds the default value on creation for the "invited" field.
	DefaultInvited int64
	// DefaultMessage holds the default value on creation for the "message" field.
	DefaultMessage int64
	// DefaultLastMessage holds the default value on creation for the "last_message" field.
	DefaultLastMessage func() time.Time
)

Columns holds all SQL columns for statistic fields.

Functions

func And

func And(predicates ...predicate.Statistic) predicate.Statistic

And groups predicates with the AND operator between them.

func ChannelID

func ChannelID(v int64) predicate.Statistic

ChannelID applies equality check predicate on the "channel_id" field. It's identical to ChannelIDEQ.

func ChannelIDEQ

func ChannelIDEQ(v int64) predicate.Statistic

ChannelIDEQ applies the EQ predicate on the "channel_id" field.

func ChannelIDGT

func ChannelIDGT(v int64) predicate.Statistic

ChannelIDGT applies the GT predicate on the "channel_id" field.

func ChannelIDGTE

func ChannelIDGTE(v int64) predicate.Statistic

ChannelIDGTE applies the GTE predicate on the "channel_id" field.

func ChannelIDIn

func ChannelIDIn(vs ...int64) predicate.Statistic

ChannelIDIn applies the In predicate on the "channel_id" field.

func ChannelIDLT

func ChannelIDLT(v int64) predicate.Statistic

ChannelIDLT applies the LT predicate on the "channel_id" field.

func ChannelIDLTE

func ChannelIDLTE(v int64) predicate.Statistic

ChannelIDLTE applies the LTE predicate on the "channel_id" field.

func ChannelIDNEQ

func ChannelIDNEQ(v int64) predicate.Statistic

ChannelIDNEQ applies the NEQ predicate on the "channel_id" field.

func ChannelIDNotIn

func ChannelIDNotIn(vs ...int64) predicate.Statistic

ChannelIDNotIn applies the NotIn predicate on the "channel_id" field.

func FirstName

func FirstName(v string) predicate.Statistic

FirstName applies equality check predicate on the "first_name" field. It's identical to FirstNameEQ.

func FirstNameContains

func FirstNameContains(v string) predicate.Statistic

FirstNameContains applies the Contains predicate on the "first_name" field.

func FirstNameContainsFold

func FirstNameContainsFold(v string) predicate.Statistic

FirstNameContainsFold applies the ContainsFold predicate on the "first_name" field.

func FirstNameEQ

func FirstNameEQ(v string) predicate.Statistic

FirstNameEQ applies the EQ predicate on the "first_name" field.

func FirstNameEqualFold

func FirstNameEqualFold(v string) predicate.Statistic

FirstNameEqualFold applies the EqualFold predicate on the "first_name" field.

func FirstNameGT

func FirstNameGT(v string) predicate.Statistic

FirstNameGT applies the GT predicate on the "first_name" field.

func FirstNameGTE

func FirstNameGTE(v string) predicate.Statistic

FirstNameGTE applies the GTE predicate on the "first_name" field.

func FirstNameHasPrefix

func FirstNameHasPrefix(v string) predicate.Statistic

FirstNameHasPrefix applies the HasPrefix predicate on the "first_name" field.

func FirstNameHasSuffix

func FirstNameHasSuffix(v string) predicate.Statistic

FirstNameHasSuffix applies the HasSuffix predicate on the "first_name" field.

func FirstNameIn

func FirstNameIn(vs ...string) predicate.Statistic

FirstNameIn applies the In predicate on the "first_name" field.

func FirstNameLT

func FirstNameLT(v string) predicate.Statistic

FirstNameLT applies the LT predicate on the "first_name" field.

func FirstNameLTE

func FirstNameLTE(v string) predicate.Statistic

FirstNameLTE applies the LTE predicate on the "first_name" field.

func FirstNameNEQ

func FirstNameNEQ(v string) predicate.Statistic

FirstNameNEQ applies the NEQ predicate on the "first_name" field.

func FirstNameNotIn

func FirstNameNotIn(vs ...string) predicate.Statistic

FirstNameNotIn applies the NotIn predicate on the "first_name" field.

func FromUser

func FromUser(v int) predicate.Statistic

FromUser applies equality check predicate on the "from_user" field. It's identical to FromUserEQ.

func FromUserEQ

func FromUserEQ(v int) predicate.Statistic

FromUserEQ applies the EQ predicate on the "from_user" field.

func FromUserGT

func FromUserGT(v int) predicate.Statistic

FromUserGT applies the GT predicate on the "from_user" field.

func FromUserGTE

func FromUserGTE(v int) predicate.Statistic

FromUserGTE applies the GTE predicate on the "from_user" field.

func FromUserIn

func FromUserIn(vs ...int) predicate.Statistic

FromUserIn applies the In predicate on the "from_user" field.

func FromUserLT

func FromUserLT(v int) predicate.Statistic

FromUserLT applies the LT predicate on the "from_user" field.

func FromUserLTE

func FromUserLTE(v int) predicate.Statistic

FromUserLTE applies the LTE predicate on the "from_user" field.

func FromUserNEQ

func FromUserNEQ(v int) predicate.Statistic

FromUserNEQ applies the NEQ predicate on the "from_user" field.

func FromUserNotIn

func FromUserNotIn(vs ...int) predicate.Statistic

FromUserNotIn applies the NotIn predicate on the "from_user" field.

func ID

func ID(id int) predicate.Statistic

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Statistic

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Statistic

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Statistic

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Statistic

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Statistic

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Statistic

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Statistic

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Statistic

IDNotIn applies the NotIn predicate on the ID field.

func Invited

func Invited(v int64) predicate.Statistic

Invited applies equality check predicate on the "invited" field. It's identical to InvitedEQ.

func InvitedEQ

func InvitedEQ(v int64) predicate.Statistic

InvitedEQ applies the EQ predicate on the "invited" field.

func InvitedGT

func InvitedGT(v int64) predicate.Statistic

InvitedGT applies the GT predicate on the "invited" field.

func InvitedGTE

func InvitedGTE(v int64) predicate.Statistic

InvitedGTE applies the GTE predicate on the "invited" field.

func InvitedIn

func InvitedIn(vs ...int64) predicate.Statistic

InvitedIn applies the In predicate on the "invited" field.

func InvitedLT

func InvitedLT(v int64) predicate.Statistic

InvitedLT applies the LT predicate on the "invited" field.

func InvitedLTE

func InvitedLTE(v int64) predicate.Statistic

InvitedLTE applies the LTE predicate on the "invited" field.

func InvitedNEQ

func InvitedNEQ(v int64) predicate.Statistic

InvitedNEQ applies the NEQ predicate on the "invited" field.

func InvitedNotIn

func InvitedNotIn(vs ...int64) predicate.Statistic

InvitedNotIn applies the NotIn predicate on the "invited" field.

func JoinTime

func JoinTime(v time.Time) predicate.Statistic

JoinTime applies equality check predicate on the "join_time" field. It's identical to JoinTimeEQ.

func JoinTimeEQ

func JoinTimeEQ(v time.Time) predicate.Statistic

JoinTimeEQ applies the EQ predicate on the "join_time" field.

func JoinTimeGT

func JoinTimeGT(v time.Time) predicate.Statistic

JoinTimeGT applies the GT predicate on the "join_time" field.

func JoinTimeGTE

func JoinTimeGTE(v time.Time) predicate.Statistic

JoinTimeGTE applies the GTE predicate on the "join_time" field.

func JoinTimeIn

func JoinTimeIn(vs ...time.Time) predicate.Statistic

JoinTimeIn applies the In predicate on the "join_time" field.

func JoinTimeLT

func JoinTimeLT(v time.Time) predicate.Statistic

JoinTimeLT applies the LT predicate on the "join_time" field.

func JoinTimeLTE

func JoinTimeLTE(v time.Time) predicate.Statistic

JoinTimeLTE applies the LTE predicate on the "join_time" field.

func JoinTimeNEQ

func JoinTimeNEQ(v time.Time) predicate.Statistic

JoinTimeNEQ applies the NEQ predicate on the "join_time" field.

func JoinTimeNotIn

func JoinTimeNotIn(vs ...time.Time) predicate.Statistic

JoinTimeNotIn applies the NotIn predicate on the "join_time" field.

func LastMessage

func LastMessage(v time.Time) predicate.Statistic

LastMessage applies equality check predicate on the "last_message" field. It's identical to LastMessageEQ.

func LastMessageEQ

func LastMessageEQ(v time.Time) predicate.Statistic

LastMessageEQ applies the EQ predicate on the "last_message" field.

func LastMessageGT

func LastMessageGT(v time.Time) predicate.Statistic

LastMessageGT applies the GT predicate on the "last_message" field.

func LastMessageGTE

func LastMessageGTE(v time.Time) predicate.Statistic

LastMessageGTE applies the GTE predicate on the "last_message" field.

func LastMessageIn

func LastMessageIn(vs ...time.Time) predicate.Statistic

LastMessageIn applies the In predicate on the "last_message" field.

func LastMessageLT

func LastMessageLT(v time.Time) predicate.Statistic

LastMessageLT applies the LT predicate on the "last_message" field.

func LastMessageLTE

func LastMessageLTE(v time.Time) predicate.Statistic

LastMessageLTE applies the LTE predicate on the "last_message" field.

func LastMessageNEQ

func LastMessageNEQ(v time.Time) predicate.Statistic

LastMessageNEQ applies the NEQ predicate on the "last_message" field.

func LastMessageNotIn

func LastMessageNotIn(vs ...time.Time) predicate.Statistic

LastMessageNotIn applies the NotIn predicate on the "last_message" field.

func LatName

func LatName(v string) predicate.Statistic

LatName applies equality check predicate on the "lat_name" field. It's identical to LatNameEQ.

func LatNameContains

func LatNameContains(v string) predicate.Statistic

LatNameContains applies the Contains predicate on the "lat_name" field.

func LatNameContainsFold

func LatNameContainsFold(v string) predicate.Statistic

LatNameContainsFold applies the ContainsFold predicate on the "lat_name" field.

func LatNameEQ

func LatNameEQ(v string) predicate.Statistic

LatNameEQ applies the EQ predicate on the "lat_name" field.

func LatNameEqualFold

func LatNameEqualFold(v string) predicate.Statistic

LatNameEqualFold applies the EqualFold predicate on the "lat_name" field.

func LatNameGT

func LatNameGT(v string) predicate.Statistic

LatNameGT applies the GT predicate on the "lat_name" field.

func LatNameGTE

func LatNameGTE(v string) predicate.Statistic

LatNameGTE applies the GTE predicate on the "lat_name" field.

func LatNameHasPrefix

func LatNameHasPrefix(v string) predicate.Statistic

LatNameHasPrefix applies the HasPrefix predicate on the "lat_name" field.

func LatNameHasSuffix

func LatNameHasSuffix(v string) predicate.Statistic

LatNameHasSuffix applies the HasSuffix predicate on the "lat_name" field.

func LatNameIn

func LatNameIn(vs ...string) predicate.Statistic

LatNameIn applies the In predicate on the "lat_name" field.

func LatNameLT

func LatNameLT(v string) predicate.Statistic

LatNameLT applies the LT predicate on the "lat_name" field.

func LatNameLTE

func LatNameLTE(v string) predicate.Statistic

LatNameLTE applies the LTE predicate on the "lat_name" field.

func LatNameNEQ

func LatNameNEQ(v string) predicate.Statistic

LatNameNEQ applies the NEQ predicate on the "lat_name" field.

func LatNameNotIn

func LatNameNotIn(vs ...string) predicate.Statistic

LatNameNotIn applies the NotIn predicate on the "lat_name" field.

func Message

func Message(v int64) predicate.Statistic

Message applies equality check predicate on the "message" field. It's identical to MessageEQ.

func MessageEQ

func MessageEQ(v int64) predicate.Statistic

MessageEQ applies the EQ predicate on the "message" field.

func MessageGT

func MessageGT(v int64) predicate.Statistic

MessageGT applies the GT predicate on the "message" field.

func MessageGTE

func MessageGTE(v int64) predicate.Statistic

MessageGTE applies the GTE predicate on the "message" field.

func MessageIn

func MessageIn(vs ...int64) predicate.Statistic

MessageIn applies the In predicate on the "message" field.

func MessageLT

func MessageLT(v int64) predicate.Statistic

MessageLT applies the LT predicate on the "message" field.

func MessageLTE

func MessageLTE(v int64) predicate.Statistic

MessageLTE applies the LTE predicate on the "message" field.

func MessageNEQ

func MessageNEQ(v int64) predicate.Statistic

MessageNEQ applies the NEQ predicate on the "message" field.

func MessageNotIn

func MessageNotIn(vs ...int64) predicate.Statistic

MessageNotIn applies the NotIn predicate on the "message" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Statistic) predicate.Statistic

Or groups predicates with the OR operator between them.

func UserID

func UserID(v int) predicate.Statistic

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

func UserIDEQ

func UserIDEQ(v int) predicate.Statistic

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDGT

func UserIDGT(v int) predicate.Statistic

UserIDGT applies the GT predicate on the "user_id" field.

func UserIDGTE

func UserIDGTE(v int) predicate.Statistic

UserIDGTE applies the GTE predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...int) predicate.Statistic

UserIDIn applies the In predicate on the "user_id" field.

func UserIDLT

func UserIDLT(v int) predicate.Statistic

UserIDLT applies the LT predicate on the "user_id" field.

func UserIDLTE

func UserIDLTE(v int) predicate.Statistic

UserIDLTE applies the LTE predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v int) predicate.Statistic

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

func UserIDNotIn(vs ...int) predicate.Statistic

UserIDNotIn applies the NotIn predicate on the "user_id" field.

func UserName

func UserName(v string) predicate.Statistic

UserName applies equality check predicate on the "user_name" field. It's identical to UserNameEQ.

func UserNameContains

func UserNameContains(v string) predicate.Statistic

UserNameContains applies the Contains predicate on the "user_name" field.

func UserNameContainsFold

func UserNameContainsFold(v string) predicate.Statistic

UserNameContainsFold applies the ContainsFold predicate on the "user_name" field.

func UserNameEQ

func UserNameEQ(v string) predicate.Statistic

UserNameEQ applies the EQ predicate on the "user_name" field.

func UserNameEqualFold

func UserNameEqualFold(v string) predicate.Statistic

UserNameEqualFold applies the EqualFold predicate on the "user_name" field.

func UserNameGT

func UserNameGT(v string) predicate.Statistic

UserNameGT applies the GT predicate on the "user_name" field.

func UserNameGTE

func UserNameGTE(v string) predicate.Statistic

UserNameGTE applies the GTE predicate on the "user_name" field.

func UserNameHasPrefix

func UserNameHasPrefix(v string) predicate.Statistic

UserNameHasPrefix applies the HasPrefix predicate on the "user_name" field.

func UserNameHasSuffix

func UserNameHasSuffix(v string) predicate.Statistic

UserNameHasSuffix applies the HasSuffix predicate on the "user_name" field.

func UserNameIn

func UserNameIn(vs ...string) predicate.Statistic

UserNameIn applies the In predicate on the "user_name" field.

func UserNameLT

func UserNameLT(v string) predicate.Statistic

UserNameLT applies the LT predicate on the "user_name" field.

func UserNameLTE

func UserNameLTE(v string) predicate.Statistic

UserNameLTE applies the LTE predicate on the "user_name" field.

func UserNameNEQ

func UserNameNEQ(v string) predicate.Statistic

UserNameNEQ applies the NEQ predicate on the "user_name" field.

func UserNameNotIn

func UserNameNotIn(vs ...string) predicate.Statistic

UserNameNotIn applies the NotIn predicate on the "user_name" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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