member

package
v0.12.4 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the member type in the database.
	Label = "member"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldPermission holds the string denoting the permission field in the database.
	FieldPermission = "permission"
	// FieldXp holds the string denoting the xp field in the database.
	FieldXp = "xp"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldLastXp holds the string denoting the last_xp field in the database.
	FieldLastXp = "last_xp"
	// FieldMessageCount holds the string denoting the message_count field in the database.
	FieldMessageCount = "message_count"
	// FieldLastNotifiedLevel holds the string denoting the last_notified_level field in the database.
	FieldLastNotifiedLevel = "last_notified_level"
	// EdgeGuild holds the string denoting the guild edge name in mutations.
	EdgeGuild = "guild"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// Table holds the table name of the member in the database.
	Table = "members"
	// GuildTable is the table that holds the guild relation/edge.
	GuildTable = "members"
	// GuildInverseTable is the table name for the Guild entity.
	// It exists in this package in order to avoid circular dependency with the "guild" package.
	GuildInverseTable = "guilds"
	// GuildColumn is the table column denoting the guild relation/edge.
	GuildColumn = "guild_members"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "members"
	// UserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UserInverseTable = "users"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "user_id"
)

Variables

View Source
var (
	// DefaultPermission holds the default value on creation for the "permission" field.
	DefaultPermission permissions.Permission
	// DefaultXp holds the default value on creation for the "xp" field.
	DefaultXp xppoint.XP
	// DefaultMessageCount holds the default value on creation for the "message_count" field.
	DefaultMessageCount uint64
)

Columns holds all SQL columns for member fields.

View Source
var ForeignKeys = []string{
	"guild_members",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "members" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Member) predicate.Member

And groups predicates with the AND operator between them.

func HasGuild

func HasGuild() predicate.Member

HasGuild applies the HasEdge predicate on the "guild" edge.

func HasGuildWith

func HasGuildWith(preds ...predicate.Guild) predicate.Member

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

func HasUser

func HasUser() predicate.Member

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

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.Member

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

func ID

func ID(id int) predicate.Member

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Member

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Member

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Member

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Member

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Member

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Member

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func LastNotifiedLevel

func LastNotifiedLevel(v uint64) predicate.Member

LastNotifiedLevel applies equality check predicate on the "last_notified_level" field. It's identical to LastNotifiedLevelEQ.

func LastNotifiedLevelEQ

func LastNotifiedLevelEQ(v uint64) predicate.Member

LastNotifiedLevelEQ applies the EQ predicate on the "last_notified_level" field.

func LastNotifiedLevelGT

func LastNotifiedLevelGT(v uint64) predicate.Member

LastNotifiedLevelGT applies the GT predicate on the "last_notified_level" field.

func LastNotifiedLevelGTE

func LastNotifiedLevelGTE(v uint64) predicate.Member

LastNotifiedLevelGTE applies the GTE predicate on the "last_notified_level" field.

func LastNotifiedLevelIn

func LastNotifiedLevelIn(vs ...uint64) predicate.Member

LastNotifiedLevelIn applies the In predicate on the "last_notified_level" field.

func LastNotifiedLevelIsNil

func LastNotifiedLevelIsNil() predicate.Member

LastNotifiedLevelIsNil applies the IsNil predicate on the "last_notified_level" field.

func LastNotifiedLevelLT

func LastNotifiedLevelLT(v uint64) predicate.Member

LastNotifiedLevelLT applies the LT predicate on the "last_notified_level" field.

func LastNotifiedLevelLTE

func LastNotifiedLevelLTE(v uint64) predicate.Member

LastNotifiedLevelLTE applies the LTE predicate on the "last_notified_level" field.

func LastNotifiedLevelNEQ

func LastNotifiedLevelNEQ(v uint64) predicate.Member

LastNotifiedLevelNEQ applies the NEQ predicate on the "last_notified_level" field.

func LastNotifiedLevelNotIn

func LastNotifiedLevelNotIn(vs ...uint64) predicate.Member

LastNotifiedLevelNotIn applies the NotIn predicate on the "last_notified_level" field.

func LastNotifiedLevelNotNil

func LastNotifiedLevelNotNil() predicate.Member

LastNotifiedLevelNotNil applies the NotNil predicate on the "last_notified_level" field.

func LastXp

func LastXp(v time.Time) predicate.Member

LastXp applies equality check predicate on the "last_xp" field. It's identical to LastXpEQ.

func LastXpEQ

func LastXpEQ(v time.Time) predicate.Member

LastXpEQ applies the EQ predicate on the "last_xp" field.

func LastXpGT

func LastXpGT(v time.Time) predicate.Member

LastXpGT applies the GT predicate on the "last_xp" field.

func LastXpGTE

func LastXpGTE(v time.Time) predicate.Member

LastXpGTE applies the GTE predicate on the "last_xp" field.

func LastXpIn

func LastXpIn(vs ...time.Time) predicate.Member

LastXpIn applies the In predicate on the "last_xp" field.

func LastXpIsNil

func LastXpIsNil() predicate.Member

LastXpIsNil applies the IsNil predicate on the "last_xp" field.

func LastXpLT

func LastXpLT(v time.Time) predicate.Member

LastXpLT applies the LT predicate on the "last_xp" field.

func LastXpLTE

func LastXpLTE(v time.Time) predicate.Member

LastXpLTE applies the LTE predicate on the "last_xp" field.

func LastXpNEQ

func LastXpNEQ(v time.Time) predicate.Member

LastXpNEQ applies the NEQ predicate on the "last_xp" field.

func LastXpNotIn

func LastXpNotIn(vs ...time.Time) predicate.Member

LastXpNotIn applies the NotIn predicate on the "last_xp" field.

func LastXpNotNil

func LastXpNotNil() predicate.Member

LastXpNotNil applies the NotNil predicate on the "last_xp" field.

func MessageCount

func MessageCount(v uint64) predicate.Member

MessageCount applies equality check predicate on the "message_count" field. It's identical to MessageCountEQ.

func MessageCountEQ

func MessageCountEQ(v uint64) predicate.Member

MessageCountEQ applies the EQ predicate on the "message_count" field.

func MessageCountGT

func MessageCountGT(v uint64) predicate.Member

MessageCountGT applies the GT predicate on the "message_count" field.

func MessageCountGTE

func MessageCountGTE(v uint64) predicate.Member

MessageCountGTE applies the GTE predicate on the "message_count" field.

func MessageCountIn

func MessageCountIn(vs ...uint64) predicate.Member

MessageCountIn applies the In predicate on the "message_count" field.

func MessageCountLT

func MessageCountLT(v uint64) predicate.Member

MessageCountLT applies the LT predicate on the "message_count" field.

func MessageCountLTE

func MessageCountLTE(v uint64) predicate.Member

MessageCountLTE applies the LTE predicate on the "message_count" field.

func MessageCountNEQ

func MessageCountNEQ(v uint64) predicate.Member

MessageCountNEQ applies the NEQ predicate on the "message_count" field.

func MessageCountNotIn

func MessageCountNotIn(vs ...uint64) predicate.Member

MessageCountNotIn applies the NotIn predicate on the "message_count" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Member) predicate.Member

Or groups predicates with the OR operator between them.

func PermissionIsNil

func PermissionIsNil() predicate.Member

PermissionIsNil applies the IsNil predicate on the "permission" field.

func PermissionNotNil

func PermissionNotNil() predicate.Member

PermissionNotNil applies the NotNil predicate on the "permission" field.

func UserID

func UserID(v snowflake.ID) predicate.Member

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

func UserIDEQ

func UserIDEQ(v snowflake.ID) predicate.Member

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

func UserIDIn

func UserIDIn(vs ...snowflake.ID) predicate.Member

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

func UserIDNEQ

func UserIDNEQ(v snowflake.ID) predicate.Member

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

func UserIDNotIn

func UserIDNotIn(vs ...snowflake.ID) predicate.Member

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

func Xp

func Xp(v xppoint.XP) predicate.Member

Xp applies equality check predicate on the "xp" field. It's identical to XpEQ.

func XpEQ

func XpEQ(v xppoint.XP) predicate.Member

XpEQ applies the EQ predicate on the "xp" field.

func XpGT

func XpGT(v xppoint.XP) predicate.Member

XpGT applies the GT predicate on the "xp" field.

func XpGTE

func XpGTE(v xppoint.XP) predicate.Member

XpGTE applies the GTE predicate on the "xp" field.

func XpIn

func XpIn(vs ...xppoint.XP) predicate.Member

XpIn applies the In predicate on the "xp" field.

func XpLT

func XpLT(v xppoint.XP) predicate.Member

XpLT applies the LT predicate on the "xp" field.

func XpLTE

func XpLTE(v xppoint.XP) predicate.Member

XpLTE applies the LTE predicate on the "xp" field.

func XpNEQ

func XpNEQ(v xppoint.XP) predicate.Member

XpNEQ applies the NEQ predicate on the "xp" field.

func XpNotIn

func XpNotIn(vs ...xppoint.XP) predicate.Member

XpNotIn applies the NotIn predicate on the "xp" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Member queries.

func ByGuildField

func ByGuildField(field string, opts ...sql.OrderTermOption) OrderOption

ByGuildField orders the results by guild field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByLastNotifiedLevel

func ByLastNotifiedLevel(opts ...sql.OrderTermOption) OrderOption

ByLastNotifiedLevel orders the results by the last_notified_level field.

func ByLastXp

func ByLastXp(opts ...sql.OrderTermOption) OrderOption

ByLastXp orders the results by the last_xp field.

func ByMessageCount

func ByMessageCount(opts ...sql.OrderTermOption) OrderOption

ByMessageCount orders the results by the message_count 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.

func ByXp

func ByXp(opts ...sql.OrderTermOption) OrderOption

ByXp orders the results by the xp field.

Jump to

Keyboard shortcuts

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