Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Guild) predicate.Guild
- func CreateTime(v time.Time) predicate.Guild
- func CreateTimeEQ(v time.Time) predicate.Guild
- func CreateTimeGT(v time.Time) predicate.Guild
- func CreateTimeGTE(v time.Time) predicate.Guild
- func CreateTimeIn(vs ...time.Time) predicate.Guild
- func CreateTimeLT(v time.Time) predicate.Guild
- func CreateTimeLTE(v time.Time) predicate.Guild
- func CreateTimeNEQ(v time.Time) predicate.Guild
- func CreateTimeNotIn(vs ...time.Time) predicate.Guild
- func FeaturesIsNil() predicate.Guild
- func FeaturesNotNil() predicate.Guild
- func GuildID(v string) predicate.Guild
- func GuildIDContains(v string) predicate.Guild
- func GuildIDContainsFold(v string) predicate.Guild
- func GuildIDEQ(v string) predicate.Guild
- func GuildIDEqualFold(v string) predicate.Guild
- func GuildIDGT(v string) predicate.Guild
- func GuildIDGTE(v string) predicate.Guild
- func GuildIDHasPrefix(v string) predicate.Guild
- func GuildIDHasSuffix(v string) predicate.Guild
- func GuildIDIn(vs ...string) predicate.Guild
- func GuildIDLT(v string) predicate.Guild
- func GuildIDLTE(v string) predicate.Guild
- func GuildIDNEQ(v string) predicate.Guild
- func GuildIDNotIn(vs ...string) predicate.Guild
- func HasAdmins() predicate.Guild
- func HasAdminsWith(preds ...predicate.User) predicate.Guild
- func HasGuildAdminConfig() predicate.Guild
- func HasGuildAdminConfigWith(preds ...predicate.GuildAdminConfig) predicate.Guild
- func HasGuildConfig() predicate.Guild
- func HasGuildConfigWith(preds ...predicate.GuildConfig) predicate.Guild
- func HasGuildEvents() predicate.Guild
- func HasGuildEventsWith(preds ...predicate.GuildEvent) predicate.Guild
- func ID(id int) predicate.Guild
- func IDEQ(id int) predicate.Guild
- func IDGT(id int) predicate.Guild
- func IDGTE(id int) predicate.Guild
- func IDIn(ids ...int) predicate.Guild
- func IDLT(id int) predicate.Guild
- func IDLTE(id int) predicate.Guild
- func IDNEQ(id int) predicate.Guild
- func IDNotIn(ids ...int) predicate.Guild
- func IconHash(v string) predicate.Guild
- func IconHashContains(v string) predicate.Guild
- func IconHashContainsFold(v string) predicate.Guild
- func IconHashEQ(v string) predicate.Guild
- func IconHashEqualFold(v string) predicate.Guild
- func IconHashGT(v string) predicate.Guild
- func IconHashGTE(v string) predicate.Guild
- func IconHashHasPrefix(v string) predicate.Guild
- func IconHashHasSuffix(v string) predicate.Guild
- func IconHashIn(vs ...string) predicate.Guild
- func IconHashIsNil() predicate.Guild
- func IconHashLT(v string) predicate.Guild
- func IconHashLTE(v string) predicate.Guild
- func IconHashNEQ(v string) predicate.Guild
- func IconHashNotIn(vs ...string) predicate.Guild
- func IconHashNotNil() predicate.Guild
- func IconURL(v string) predicate.Guild
- func IconURLContains(v string) predicate.Guild
- func IconURLContainsFold(v string) predicate.Guild
- func IconURLEQ(v string) predicate.Guild
- func IconURLEqualFold(v string) predicate.Guild
- func IconURLGT(v string) predicate.Guild
- func IconURLGTE(v string) predicate.Guild
- func IconURLHasPrefix(v string) predicate.Guild
- func IconURLHasSuffix(v string) predicate.Guild
- func IconURLIn(vs ...string) predicate.Guild
- func IconURLLT(v string) predicate.Guild
- func IconURLLTE(v string) predicate.Guild
- func IconURLNEQ(v string) predicate.Guild
- func IconURLNotIn(vs ...string) predicate.Guild
- func JoinedAt(v time.Time) predicate.Guild
- func JoinedAtEQ(v time.Time) predicate.Guild
- func JoinedAtGT(v time.Time) predicate.Guild
- func JoinedAtGTE(v time.Time) predicate.Guild
- func JoinedAtIn(vs ...time.Time) predicate.Guild
- func JoinedAtIsNil() predicate.Guild
- func JoinedAtLT(v time.Time) predicate.Guild
- func JoinedAtLTE(v time.Time) predicate.Guild
- func JoinedAtNEQ(v time.Time) predicate.Guild
- func JoinedAtNotIn(vs ...time.Time) predicate.Guild
- func JoinedAtNotNil() predicate.Guild
- func Large(v bool) predicate.Guild
- func LargeEQ(v bool) predicate.Guild
- func LargeIsNil() predicate.Guild
- func LargeNEQ(v bool) predicate.Guild
- func LargeNotNil() predicate.Guild
- func MemberCount(v int) predicate.Guild
- func MemberCountEQ(v int) predicate.Guild
- func MemberCountGT(v int) predicate.Guild
- func MemberCountGTE(v int) predicate.Guild
- func MemberCountIn(vs ...int) predicate.Guild
- func MemberCountIsNil() predicate.Guild
- func MemberCountLT(v int) predicate.Guild
- func MemberCountLTE(v int) predicate.Guild
- func MemberCountNEQ(v int) predicate.Guild
- func MemberCountNotIn(vs ...int) predicate.Guild
- func MemberCountNotNil() predicate.Guild
- func Name(v string) predicate.Guild
- func NameContains(v string) predicate.Guild
- func NameContainsFold(v string) predicate.Guild
- func NameEQ(v string) predicate.Guild
- func NameEqualFold(v string) predicate.Guild
- func NameGT(v string) predicate.Guild
- func NameGTE(v string) predicate.Guild
- func NameHasPrefix(v string) predicate.Guild
- func NameHasSuffix(v string) predicate.Guild
- func NameIn(vs ...string) predicate.Guild
- func NameLT(v string) predicate.Guild
- func NameLTE(v string) predicate.Guild
- func NameNEQ(v string) predicate.Guild
- func NameNotIn(vs ...string) predicate.Guild
- func Not(p predicate.Guild) predicate.Guild
- func Or(predicates ...predicate.Guild) predicate.Guild
- func OwnerID(v string) predicate.Guild
- func OwnerIDContains(v string) predicate.Guild
- func OwnerIDContainsFold(v string) predicate.Guild
- func OwnerIDEQ(v string) predicate.Guild
- func OwnerIDEqualFold(v string) predicate.Guild
- func OwnerIDGT(v string) predicate.Guild
- func OwnerIDGTE(v string) predicate.Guild
- func OwnerIDHasPrefix(v string) predicate.Guild
- func OwnerIDHasSuffix(v string) predicate.Guild
- func OwnerIDIn(vs ...string) predicate.Guild
- func OwnerIDIsNil() predicate.Guild
- func OwnerIDLT(v string) predicate.Guild
- func OwnerIDLTE(v string) predicate.Guild
- func OwnerIDNEQ(v string) predicate.Guild
- func OwnerIDNotIn(vs ...string) predicate.Guild
- func OwnerIDNotNil() predicate.Guild
- func Permissions(v uint64) predicate.Guild
- func PermissionsEQ(v uint64) predicate.Guild
- func PermissionsGT(v uint64) predicate.Guild
- func PermissionsGTE(v uint64) predicate.Guild
- func PermissionsIn(vs ...uint64) predicate.Guild
- func PermissionsIsNil() predicate.Guild
- func PermissionsLT(v uint64) predicate.Guild
- func PermissionsLTE(v uint64) predicate.Guild
- func PermissionsNEQ(v uint64) predicate.Guild
- func PermissionsNotIn(vs ...uint64) predicate.Guild
- func PermissionsNotNil() predicate.Guild
- func SystemChannelFlags(v string) predicate.Guild
- func SystemChannelFlagsContains(v string) predicate.Guild
- func SystemChannelFlagsContainsFold(v string) predicate.Guild
- func SystemChannelFlagsEQ(v string) predicate.Guild
- func SystemChannelFlagsEqualFold(v string) predicate.Guild
- func SystemChannelFlagsGT(v string) predicate.Guild
- func SystemChannelFlagsGTE(v string) predicate.Guild
- func SystemChannelFlagsHasPrefix(v string) predicate.Guild
- func SystemChannelFlagsHasSuffix(v string) predicate.Guild
- func SystemChannelFlagsIn(vs ...string) predicate.Guild
- func SystemChannelFlagsIsNil() predicate.Guild
- func SystemChannelFlagsLT(v string) predicate.Guild
- func SystemChannelFlagsLTE(v string) predicate.Guild
- func SystemChannelFlagsNEQ(v string) predicate.Guild
- func SystemChannelFlagsNotIn(vs ...string) predicate.Guild
- func SystemChannelFlagsNotNil() predicate.Guild
- func UpdateTime(v time.Time) predicate.Guild
- func UpdateTimeEQ(v time.Time) predicate.Guild
- func UpdateTimeGT(v time.Time) predicate.Guild
- func UpdateTimeGTE(v time.Time) predicate.Guild
- func UpdateTimeIn(vs ...time.Time) predicate.Guild
- func UpdateTimeLT(v time.Time) predicate.Guild
- func UpdateTimeLTE(v time.Time) predicate.Guild
- func UpdateTimeNEQ(v time.Time) predicate.Guild
- func UpdateTimeNotIn(vs ...time.Time) predicate.Guild
- func ValidColumn(column string) bool
- type OrderOption
- func ByAdmins(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAdminsCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByGuildAdminConfigField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByGuildConfigField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByGuildEvents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByGuildEventsCount(opts ...sql.OrderTermOption) OrderOption
- func ByGuildID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIconHash(opts ...sql.OrderTermOption) OrderOption
- func ByIconURL(opts ...sql.OrderTermOption) OrderOption
- func ByJoinedAt(opts ...sql.OrderTermOption) OrderOption
- func ByLarge(opts ...sql.OrderTermOption) OrderOption
- func ByMemberCount(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerID(opts ...sql.OrderTermOption) OrderOption
- func ByPermissions(opts ...sql.OrderTermOption) OrderOption
- func BySystemChannelFlags(opts ...sql.OrderTermOption) OrderOption
- func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the guild type in the database. Label = "guild" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldGuildID holds the string denoting the guild_id field in the database. FieldGuildID = "guild_id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldFeatures holds the string denoting the features field in the database. FieldFeatures = "features" // FieldIconHash holds the string denoting the icon_hash field in the database. FieldIconHash = "icon_hash" // FieldIconURL holds the string denoting the icon_url field in the database. FieldIconURL = "icon_url" // FieldJoinedAt holds the string denoting the joined_at field in the database. FieldJoinedAt = "joined_at" // FieldLarge holds the string denoting the large field in the database. FieldLarge = "large" // FieldMemberCount holds the string denoting the member_count field in the database. FieldMemberCount = "member_count" // FieldOwnerID holds the string denoting the owner_id field in the database. FieldOwnerID = "owner_id" // FieldPermissions holds the string denoting the permissions field in the database. FieldPermissions = "permissions" // FieldSystemChannelFlags holds the string denoting the system_channel_flags field in the database. FieldSystemChannelFlags = "system_channel_flags" // EdgeGuildConfig holds the string denoting the guild_config edge name in mutations. EdgeGuildConfig = "guild_config" // EdgeGuildAdminConfig holds the string denoting the guild_admin_config edge name in mutations. EdgeGuildAdminConfig = "guild_admin_config" // EdgeGuildEvents holds the string denoting the guild_events edge name in mutations. EdgeGuildEvents = "guild_events" // EdgeAdmins holds the string denoting the admins edge name in mutations. EdgeAdmins = "admins" // Table holds the table name of the guild in the database. Table = "guilds" // GuildConfigTable is the table that holds the guild_config relation/edge. GuildConfigTable = "guild_configs" // GuildConfigInverseTable is the table name for the GuildConfig entity. // It exists in this package in order to avoid circular dependency with the "guildconfig" package. GuildConfigInverseTable = "guild_configs" // GuildConfigColumn is the table column denoting the guild_config relation/edge. GuildConfigColumn = "guild_guild_config" // GuildAdminConfigTable is the table that holds the guild_admin_config relation/edge. GuildAdminConfigTable = "guild_admin_configs" // GuildAdminConfigInverseTable is the table name for the GuildAdminConfig entity. // It exists in this package in order to avoid circular dependency with the "guildadminconfig" package. GuildAdminConfigInverseTable = "guild_admin_configs" // GuildAdminConfigColumn is the table column denoting the guild_admin_config relation/edge. GuildAdminConfigColumn = "guild_guild_admin_config" // GuildEventsTable is the table that holds the guild_events relation/edge. GuildEventsTable = "guild_events" // GuildEventsInverseTable is the table name for the GuildEvent entity. // It exists in this package in order to avoid circular dependency with the "guildevent" package. GuildEventsInverseTable = "guild_events" // GuildEventsColumn is the table column denoting the guild_events relation/edge. GuildEventsColumn = "guild_guild_events" // AdminsTable is the table that holds the admins relation/edge. The primary key declared below. AdminsTable = "user_user_guilds" // AdminsInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. AdminsInverseTable = "users" )
Variables ¶
var ( Hooks [1]ent.Hook Policy ent.Policy // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultFeatures holds the default value on creation for the "features" field. DefaultFeatures []string // IconHashValidator is a validator for the "icon_hash" field. It is called by the builders before save. IconHashValidator func(string) error // IconURLValidator is a validator for the "icon_url" field. It is called by the builders before save. IconURLValidator func(string) error // DefaultLarge holds the default value on creation for the "large" field. DefaultLarge bool // DefaultMemberCount holds the default value on creation for the "member_count" field. DefaultMemberCount int // DefaultPermissions holds the default value on creation for the "permissions" field. DefaultPermissions uint64 // SystemChannelFlagsValidator is a validator for the "system_channel_flags" field. It is called by the builders before save. SystemChannelFlagsValidator func(string) error )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "github.com/lrstanley/spectrograph/internal/database/ent/runtime"
var ( // AdminsPrimaryKey and AdminsColumn2 are the table columns denoting the // primary key for the admins relation (M2M). AdminsPrimaryKey = []string{"user_id", "guild_id"} )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldGuildID, FieldName, FieldFeatures, FieldIconHash, FieldIconURL, FieldJoinedAt, FieldLarge, FieldMemberCount, FieldOwnerID, FieldPermissions, FieldSystemChannelFlags, }
Columns holds all SQL columns for guild fields.
Functions ¶
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func FeaturesIsNil ¶
FeaturesIsNil applies the IsNil predicate on the "features" field.
func FeaturesNotNil ¶
FeaturesNotNil applies the NotNil predicate on the "features" field.
func GuildID ¶
GuildID applies equality check predicate on the "guild_id" field. It's identical to GuildIDEQ.
func GuildIDContains ¶
GuildIDContains applies the Contains predicate on the "guild_id" field.
func GuildIDContainsFold ¶
GuildIDContainsFold applies the ContainsFold predicate on the "guild_id" field.
func GuildIDEqualFold ¶
GuildIDEqualFold applies the EqualFold predicate on the "guild_id" field.
func GuildIDGTE ¶
GuildIDGTE applies the GTE predicate on the "guild_id" field.
func GuildIDHasPrefix ¶
GuildIDHasPrefix applies the HasPrefix predicate on the "guild_id" field.
func GuildIDHasSuffix ¶
GuildIDHasSuffix applies the HasSuffix predicate on the "guild_id" field.
func GuildIDLTE ¶
GuildIDLTE applies the LTE predicate on the "guild_id" field.
func GuildIDNEQ ¶
GuildIDNEQ applies the NEQ predicate on the "guild_id" field.
func GuildIDNotIn ¶
GuildIDNotIn applies the NotIn predicate on the "guild_id" field.
func HasAdminsWith ¶
HasAdminsWith applies the HasEdge predicate on the "admins" edge with a given conditions (other predicates).
func HasGuildAdminConfig ¶
HasGuildAdminConfig applies the HasEdge predicate on the "guild_admin_config" edge.
func HasGuildAdminConfigWith ¶
func HasGuildAdminConfigWith(preds ...predicate.GuildAdminConfig) predicate.Guild
HasGuildAdminConfigWith applies the HasEdge predicate on the "guild_admin_config" edge with a given conditions (other predicates).
func HasGuildConfig ¶
HasGuildConfig applies the HasEdge predicate on the "guild_config" edge.
func HasGuildConfigWith ¶
func HasGuildConfigWith(preds ...predicate.GuildConfig) predicate.Guild
HasGuildConfigWith applies the HasEdge predicate on the "guild_config" edge with a given conditions (other predicates).
func HasGuildEvents ¶
HasGuildEvents applies the HasEdge predicate on the "guild_events" edge.
func HasGuildEventsWith ¶
func HasGuildEventsWith(preds ...predicate.GuildEvent) predicate.Guild
HasGuildEventsWith applies the HasEdge predicate on the "guild_events" edge with a given conditions (other predicates).
func IconHash ¶
IconHash applies equality check predicate on the "icon_hash" field. It's identical to IconHashEQ.
func IconHashContains ¶
IconHashContains applies the Contains predicate on the "icon_hash" field.
func IconHashContainsFold ¶
IconHashContainsFold applies the ContainsFold predicate on the "icon_hash" field.
func IconHashEQ ¶
IconHashEQ applies the EQ predicate on the "icon_hash" field.
func IconHashEqualFold ¶
IconHashEqualFold applies the EqualFold predicate on the "icon_hash" field.
func IconHashGT ¶
IconHashGT applies the GT predicate on the "icon_hash" field.
func IconHashGTE ¶
IconHashGTE applies the GTE predicate on the "icon_hash" field.
func IconHashHasPrefix ¶
IconHashHasPrefix applies the HasPrefix predicate on the "icon_hash" field.
func IconHashHasSuffix ¶
IconHashHasSuffix applies the HasSuffix predicate on the "icon_hash" field.
func IconHashIn ¶
IconHashIn applies the In predicate on the "icon_hash" field.
func IconHashIsNil ¶
IconHashIsNil applies the IsNil predicate on the "icon_hash" field.
func IconHashLT ¶
IconHashLT applies the LT predicate on the "icon_hash" field.
func IconHashLTE ¶
IconHashLTE applies the LTE predicate on the "icon_hash" field.
func IconHashNEQ ¶
IconHashNEQ applies the NEQ predicate on the "icon_hash" field.
func IconHashNotIn ¶
IconHashNotIn applies the NotIn predicate on the "icon_hash" field.
func IconHashNotNil ¶
IconHashNotNil applies the NotNil predicate on the "icon_hash" field.
func IconURL ¶
IconURL applies equality check predicate on the "icon_url" field. It's identical to IconURLEQ.
func IconURLContains ¶
IconURLContains applies the Contains predicate on the "icon_url" field.
func IconURLContainsFold ¶
IconURLContainsFold applies the ContainsFold predicate on the "icon_url" field.
func IconURLEqualFold ¶
IconURLEqualFold applies the EqualFold predicate on the "icon_url" field.
func IconURLGTE ¶
IconURLGTE applies the GTE predicate on the "icon_url" field.
func IconURLHasPrefix ¶
IconURLHasPrefix applies the HasPrefix predicate on the "icon_url" field.
func IconURLHasSuffix ¶
IconURLHasSuffix applies the HasSuffix predicate on the "icon_url" field.
func IconURLLTE ¶
IconURLLTE applies the LTE predicate on the "icon_url" field.
func IconURLNEQ ¶
IconURLNEQ applies the NEQ predicate on the "icon_url" field.
func IconURLNotIn ¶
IconURLNotIn applies the NotIn predicate on the "icon_url" field.
func JoinedAt ¶
JoinedAt applies equality check predicate on the "joined_at" field. It's identical to JoinedAtEQ.
func JoinedAtEQ ¶
JoinedAtEQ applies the EQ predicate on the "joined_at" field.
func JoinedAtGT ¶
JoinedAtGT applies the GT predicate on the "joined_at" field.
func JoinedAtGTE ¶
JoinedAtGTE applies the GTE predicate on the "joined_at" field.
func JoinedAtIn ¶
JoinedAtIn applies the In predicate on the "joined_at" field.
func JoinedAtIsNil ¶
JoinedAtIsNil applies the IsNil predicate on the "joined_at" field.
func JoinedAtLT ¶
JoinedAtLT applies the LT predicate on the "joined_at" field.
func JoinedAtLTE ¶
JoinedAtLTE applies the LTE predicate on the "joined_at" field.
func JoinedAtNEQ ¶
JoinedAtNEQ applies the NEQ predicate on the "joined_at" field.
func JoinedAtNotIn ¶
JoinedAtNotIn applies the NotIn predicate on the "joined_at" field.
func JoinedAtNotNil ¶
JoinedAtNotNil applies the NotNil predicate on the "joined_at" field.
func Large ¶
Large applies equality check predicate on the "large" field. It's identical to LargeEQ.
func LargeIsNil ¶
LargeIsNil applies the IsNil predicate on the "large" field.
func LargeNotNil ¶
LargeNotNil applies the NotNil predicate on the "large" field.
func MemberCount ¶
MemberCount applies equality check predicate on the "member_count" field. It's identical to MemberCountEQ.
func MemberCountEQ ¶
MemberCountEQ applies the EQ predicate on the "member_count" field.
func MemberCountGT ¶
MemberCountGT applies the GT predicate on the "member_count" field.
func MemberCountGTE ¶
MemberCountGTE applies the GTE predicate on the "member_count" field.
func MemberCountIn ¶
MemberCountIn applies the In predicate on the "member_count" field.
func MemberCountIsNil ¶
MemberCountIsNil applies the IsNil predicate on the "member_count" field.
func MemberCountLT ¶
MemberCountLT applies the LT predicate on the "member_count" field.
func MemberCountLTE ¶
MemberCountLTE applies the LTE predicate on the "member_count" field.
func MemberCountNEQ ¶
MemberCountNEQ applies the NEQ predicate on the "member_count" field.
func MemberCountNotIn ¶
MemberCountNotIn applies the NotIn predicate on the "member_count" field.
func MemberCountNotNil ¶
MemberCountNotNil applies the NotNil predicate on the "member_count" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func OwnerID ¶
OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.
func OwnerIDContains ¶
OwnerIDContains applies the Contains predicate on the "owner_id" field.
func OwnerIDContainsFold ¶
OwnerIDContainsFold applies the ContainsFold predicate on the "owner_id" field.
func OwnerIDEqualFold ¶
OwnerIDEqualFold applies the EqualFold predicate on the "owner_id" field.
func OwnerIDGTE ¶
OwnerIDGTE applies the GTE predicate on the "owner_id" field.
func OwnerIDHasPrefix ¶
OwnerIDHasPrefix applies the HasPrefix predicate on the "owner_id" field.
func OwnerIDHasSuffix ¶
OwnerIDHasSuffix applies the HasSuffix predicate on the "owner_id" field.
func OwnerIDIsNil ¶
OwnerIDIsNil applies the IsNil predicate on the "owner_id" field.
func OwnerIDLTE ¶
OwnerIDLTE applies the LTE predicate on the "owner_id" field.
func OwnerIDNEQ ¶
OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.
func OwnerIDNotIn ¶
OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.
func OwnerIDNotNil ¶
OwnerIDNotNil applies the NotNil predicate on the "owner_id" field.
func Permissions ¶
Permissions applies equality check predicate on the "permissions" field. It's identical to PermissionsEQ.
func PermissionsEQ ¶
PermissionsEQ applies the EQ predicate on the "permissions" field.
func PermissionsGT ¶
PermissionsGT applies the GT predicate on the "permissions" field.
func PermissionsGTE ¶
PermissionsGTE applies the GTE predicate on the "permissions" field.
func PermissionsIn ¶
PermissionsIn applies the In predicate on the "permissions" field.
func PermissionsIsNil ¶
PermissionsIsNil applies the IsNil predicate on the "permissions" field.
func PermissionsLT ¶
PermissionsLT applies the LT predicate on the "permissions" field.
func PermissionsLTE ¶
PermissionsLTE applies the LTE predicate on the "permissions" field.
func PermissionsNEQ ¶
PermissionsNEQ applies the NEQ predicate on the "permissions" field.
func PermissionsNotIn ¶
PermissionsNotIn applies the NotIn predicate on the "permissions" field.
func PermissionsNotNil ¶
PermissionsNotNil applies the NotNil predicate on the "permissions" field.
func SystemChannelFlags ¶
SystemChannelFlags applies equality check predicate on the "system_channel_flags" field. It's identical to SystemChannelFlagsEQ.
func SystemChannelFlagsContains ¶
SystemChannelFlagsContains applies the Contains predicate on the "system_channel_flags" field.
func SystemChannelFlagsContainsFold ¶
SystemChannelFlagsContainsFold applies the ContainsFold predicate on the "system_channel_flags" field.
func SystemChannelFlagsEQ ¶
SystemChannelFlagsEQ applies the EQ predicate on the "system_channel_flags" field.
func SystemChannelFlagsEqualFold ¶
SystemChannelFlagsEqualFold applies the EqualFold predicate on the "system_channel_flags" field.
func SystemChannelFlagsGT ¶
SystemChannelFlagsGT applies the GT predicate on the "system_channel_flags" field.
func SystemChannelFlagsGTE ¶
SystemChannelFlagsGTE applies the GTE predicate on the "system_channel_flags" field.
func SystemChannelFlagsHasPrefix ¶
SystemChannelFlagsHasPrefix applies the HasPrefix predicate on the "system_channel_flags" field.
func SystemChannelFlagsHasSuffix ¶
SystemChannelFlagsHasSuffix applies the HasSuffix predicate on the "system_channel_flags" field.
func SystemChannelFlagsIn ¶
SystemChannelFlagsIn applies the In predicate on the "system_channel_flags" field.
func SystemChannelFlagsIsNil ¶
SystemChannelFlagsIsNil applies the IsNil predicate on the "system_channel_flags" field.
func SystemChannelFlagsLT ¶
SystemChannelFlagsLT applies the LT predicate on the "system_channel_flags" field.
func SystemChannelFlagsLTE ¶
SystemChannelFlagsLTE applies the LTE predicate on the "system_channel_flags" field.
func SystemChannelFlagsNEQ ¶
SystemChannelFlagsNEQ applies the NEQ predicate on the "system_channel_flags" field.
func SystemChannelFlagsNotIn ¶
SystemChannelFlagsNotIn applies the NotIn predicate on the "system_channel_flags" field.
func SystemChannelFlagsNotNil ¶
SystemChannelFlagsNotNil applies the NotNil predicate on the "system_channel_flags" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" 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 Guild queries.
func ByAdmins ¶
func ByAdmins(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByAdmins orders the results by admins terms.
func ByAdminsCount ¶
func ByAdminsCount(opts ...sql.OrderTermOption) OrderOption
ByAdminsCount orders the results by admins count.
func ByCreateTime ¶
func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
ByCreateTime orders the results by the create_time field.
func ByGuildAdminConfigField ¶
func ByGuildAdminConfigField(field string, opts ...sql.OrderTermOption) OrderOption
ByGuildAdminConfigField orders the results by guild_admin_config field.
func ByGuildConfigField ¶
func ByGuildConfigField(field string, opts ...sql.OrderTermOption) OrderOption
ByGuildConfigField orders the results by guild_config field.
func ByGuildEvents ¶
func ByGuildEvents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByGuildEvents orders the results by guild_events terms.
func ByGuildEventsCount ¶
func ByGuildEventsCount(opts ...sql.OrderTermOption) OrderOption
ByGuildEventsCount orders the results by guild_events count.
func ByGuildID ¶
func ByGuildID(opts ...sql.OrderTermOption) OrderOption
ByGuildID orders the results by the guild_id field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIconHash ¶
func ByIconHash(opts ...sql.OrderTermOption) OrderOption
ByIconHash orders the results by the icon_hash field.
func ByIconURL ¶
func ByIconURL(opts ...sql.OrderTermOption) OrderOption
ByIconURL orders the results by the icon_url field.
func ByJoinedAt ¶
func ByJoinedAt(opts ...sql.OrderTermOption) OrderOption
ByJoinedAt orders the results by the joined_at field.
func ByLarge ¶
func ByLarge(opts ...sql.OrderTermOption) OrderOption
ByLarge orders the results by the large field.
func ByMemberCount ¶
func ByMemberCount(opts ...sql.OrderTermOption) OrderOption
ByMemberCount orders the results by the member_count field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByOwnerID ¶
func ByOwnerID(opts ...sql.OrderTermOption) OrderOption
ByOwnerID orders the results by the owner_id field.
func ByPermissions ¶
func ByPermissions(opts ...sql.OrderTermOption) OrderOption
ByPermissions orders the results by the permissions field.
func BySystemChannelFlags ¶
func BySystemChannelFlags(opts ...sql.OrderTermOption) OrderOption
BySystemChannelFlags orders the results by the system_channel_flags field.
func ByUpdateTime ¶
func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
ByUpdateTime orders the results by the update_time field.