Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Member) predicate.Member
- func HasGuild() predicate.Member
- func HasGuildWith(preds ...predicate.Guild) predicate.Member
- func HasUser() predicate.Member
- func HasUserWith(preds ...predicate.User) predicate.Member
- func ID(id int) predicate.Member
- func IDEQ(id int) predicate.Member
- func IDGT(id int) predicate.Member
- func IDGTE(id int) predicate.Member
- func IDIn(ids ...int) predicate.Member
- func IDLT(id int) predicate.Member
- func IDLTE(id int) predicate.Member
- func IDNEQ(id int) predicate.Member
- func IDNotIn(ids ...int) predicate.Member
- func LastNotifiedLevel(v uint64) predicate.Member
- func LastNotifiedLevelEQ(v uint64) predicate.Member
- func LastNotifiedLevelGT(v uint64) predicate.Member
- func LastNotifiedLevelGTE(v uint64) predicate.Member
- func LastNotifiedLevelIn(vs ...uint64) predicate.Member
- func LastNotifiedLevelIsNil() predicate.Member
- func LastNotifiedLevelLT(v uint64) predicate.Member
- func LastNotifiedLevelLTE(v uint64) predicate.Member
- func LastNotifiedLevelNEQ(v uint64) predicate.Member
- func LastNotifiedLevelNotIn(vs ...uint64) predicate.Member
- func LastNotifiedLevelNotNil() predicate.Member
- func LastXp(v time.Time) predicate.Member
- func LastXpEQ(v time.Time) predicate.Member
- func LastXpGT(v time.Time) predicate.Member
- func LastXpGTE(v time.Time) predicate.Member
- func LastXpIn(vs ...time.Time) predicate.Member
- func LastXpIsNil() predicate.Member
- func LastXpLT(v time.Time) predicate.Member
- func LastXpLTE(v time.Time) predicate.Member
- func LastXpNEQ(v time.Time) predicate.Member
- func LastXpNotIn(vs ...time.Time) predicate.Member
- func LastXpNotNil() predicate.Member
- func MessageCount(v uint64) predicate.Member
- func MessageCountEQ(v uint64) predicate.Member
- func MessageCountGT(v uint64) predicate.Member
- func MessageCountGTE(v uint64) predicate.Member
- func MessageCountIn(vs ...uint64) predicate.Member
- func MessageCountLT(v uint64) predicate.Member
- func MessageCountLTE(v uint64) predicate.Member
- func MessageCountNEQ(v uint64) predicate.Member
- func MessageCountNotIn(vs ...uint64) predicate.Member
- func Not(p predicate.Member) predicate.Member
- func Or(predicates ...predicate.Member) predicate.Member
- func PermissionIsNil() predicate.Member
- func PermissionNotNil() predicate.Member
- func UserID(v snowflake.ID) predicate.Member
- func UserIDEQ(v snowflake.ID) predicate.Member
- func UserIDIn(vs ...snowflake.ID) predicate.Member
- func UserIDNEQ(v snowflake.ID) predicate.Member
- func UserIDNotIn(vs ...snowflake.ID) predicate.Member
- func ValidColumn(column string) bool
- func Xp(v xppoint.XP) predicate.Member
- func XpEQ(v xppoint.XP) predicate.Member
- func XpGT(v xppoint.XP) predicate.Member
- func XpGTE(v xppoint.XP) predicate.Member
- func XpIn(vs ...xppoint.XP) predicate.Member
- func XpLT(v xppoint.XP) predicate.Member
- func XpLTE(v xppoint.XP) predicate.Member
- func XpNEQ(v xppoint.XP) predicate.Member
- func XpNotIn(vs ...xppoint.XP) predicate.Member
- type OrderOption
- func ByGuildField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastNotifiedLevel(opts ...sql.OrderTermOption) OrderOption
- func ByLastXp(opts ...sql.OrderTermOption) OrderOption
- func ByMessageCount(opts ...sql.OrderTermOption) OrderOption
- func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
- func ByXp(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldPermission, FieldXp, FieldUserID, FieldLastXp, FieldMessageCount, FieldLastNotifiedLevel, }
Columns holds all SQL columns for member fields.
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 HasGuildWith ¶
HasGuildWith applies the HasEdge predicate on the "guild" edge with a given conditions (other predicates).
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func LastNotifiedLevel ¶
LastNotifiedLevel applies equality check predicate on the "last_notified_level" field. It's identical to LastNotifiedLevelEQ.
func LastNotifiedLevelEQ ¶
LastNotifiedLevelEQ applies the EQ predicate on the "last_notified_level" field.
func LastNotifiedLevelGT ¶
LastNotifiedLevelGT applies the GT predicate on the "last_notified_level" field.
func LastNotifiedLevelGTE ¶
LastNotifiedLevelGTE applies the GTE predicate on the "last_notified_level" field.
func LastNotifiedLevelIn ¶
LastNotifiedLevelIn applies the In predicate on the "last_notified_level" field.
func LastNotifiedLevelIsNil ¶
LastNotifiedLevelIsNil applies the IsNil predicate on the "last_notified_level" field.
func LastNotifiedLevelLT ¶
LastNotifiedLevelLT applies the LT predicate on the "last_notified_level" field.
func LastNotifiedLevelLTE ¶
LastNotifiedLevelLTE applies the LTE predicate on the "last_notified_level" field.
func LastNotifiedLevelNEQ ¶
LastNotifiedLevelNEQ applies the NEQ predicate on the "last_notified_level" field.
func LastNotifiedLevelNotIn ¶
LastNotifiedLevelNotIn applies the NotIn predicate on the "last_notified_level" field.
func LastNotifiedLevelNotNil ¶
LastNotifiedLevelNotNil applies the NotNil predicate on the "last_notified_level" field.
func LastXp ¶
LastXp applies equality check predicate on the "last_xp" field. It's identical to LastXpEQ.
func LastXpIsNil ¶
LastXpIsNil applies the IsNil predicate on the "last_xp" field.
func LastXpNotIn ¶
LastXpNotIn applies the NotIn predicate on the "last_xp" field.
func LastXpNotNil ¶
LastXpNotNil applies the NotNil predicate on the "last_xp" field.
func MessageCount ¶
MessageCount applies equality check predicate on the "message_count" field. It's identical to MessageCountEQ.
func MessageCountEQ ¶
MessageCountEQ applies the EQ predicate on the "message_count" field.
func MessageCountGT ¶
MessageCountGT applies the GT predicate on the "message_count" field.
func MessageCountGTE ¶
MessageCountGTE applies the GTE predicate on the "message_count" field.
func MessageCountIn ¶
MessageCountIn applies the In predicate on the "message_count" field.
func MessageCountLT ¶
MessageCountLT applies the LT predicate on the "message_count" field.
func MessageCountLTE ¶
MessageCountLTE applies the LTE predicate on the "message_count" field.
func MessageCountNEQ ¶
MessageCountNEQ applies the NEQ predicate on the "message_count" field.
func MessageCountNotIn ¶
MessageCountNotIn applies the NotIn predicate on the "message_count" field.
func PermissionIsNil ¶
PermissionIsNil applies the IsNil predicate on the "permission" field.
func PermissionNotNil ¶
PermissionNotNil applies the NotNil predicate on the "permission" field.
func UserID ¶
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDNotIn ¶
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 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.