Documentation
¶
Index ¶
- Variables
- func ModerationBanExists(ctx context.Context, exec boil.ContextExecutor, guildID string, userID string) (bool, error)
- func ModerationBanExistsG(ctx context.Context, guildID string, userID string) (bool, error)
- func ModerationBans(mods ...qm.QueryMod) moderationBanQuery
- func ModerationCaseExists(ctx context.Context, exec boil.ContextExecutor, guildID string, caseID int64) (bool, error)
- func ModerationCaseExistsG(ctx context.Context, guildID string, caseID int64) (bool, error)
- func ModerationCases(mods ...qm.QueryMod) moderationCaseQuery
- func ModerationConfigExists(ctx context.Context, exec boil.ContextExecutor, guildID string) (bool, error)
- func ModerationConfigExistsG(ctx context.Context, guildID string) (bool, error)
- func ModerationConfigs(mods ...qm.QueryMod) moderationConfigQuery
- func ModerationMessageLogExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func ModerationMessageLogExistsG(ctx context.Context, iD int64) (bool, error)
- func ModerationMessageLogs(mods ...qm.QueryMod) moderationMessageLogQuery
- func ModerationMessageLogsMessageExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func ModerationMessageLogsMessageExistsG(ctx context.Context, iD int64) (bool, error)
- func ModerationMessageLogsMessages(mods ...qm.QueryMod) moderationMessageLogsMessageQuery
- func ModerationMuteExists(ctx context.Context, exec boil.ContextExecutor, guildID string, userID string) (bool, error)
- func ModerationMuteExistsG(ctx context.Context, guildID string, userID string) (bool, error)
- func ModerationMutes(mods ...qm.QueryMod) moderationMuteQuery
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- type M
- type ModerationBan
- func (o *ModerationBan) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ModerationBan) DeleteG(ctx context.Context) (int64, error)
- func (o *ModerationBan) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *ModerationBan) GetGuild() *ModerationConfig
- func (o *ModerationBan) Guild(mods ...qm.QueryMod) moderationConfigQuery
- func (o *ModerationBan) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *ModerationBan) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *ModerationBan) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ModerationBan) ReloadG(ctx context.Context) error
- func (o *ModerationBan) SetGuild(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *ModerationBan) SetGuildG(ctx context.Context, insert bool, related *ModerationConfig) error
- func (o *ModerationBan) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *ModerationBan) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *ModerationBan) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *ModerationBan) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type ModerationBanSlice
- func (o ModerationBanSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o ModerationBanSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *ModerationBanSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ModerationBanSlice) ReloadAllG(ctx context.Context) error
- func (o ModerationBanSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o ModerationBanSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type ModerationCase
- func (o *ModerationCase) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ModerationCase) DeleteG(ctx context.Context) (int64, error)
- func (o *ModerationCase) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *ModerationCase) GetGuild() *ModerationConfig
- func (o *ModerationCase) Guild(mods ...qm.QueryMod) moderationConfigQuery
- func (o *ModerationCase) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *ModerationCase) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *ModerationCase) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ModerationCase) ReloadG(ctx context.Context) error
- func (o *ModerationCase) SetGuild(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *ModerationCase) SetGuildG(ctx context.Context, insert bool, related *ModerationConfig) error
- func (o *ModerationCase) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *ModerationCase) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *ModerationCase) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *ModerationCase) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type ModerationCaseSlice
- func (o ModerationCaseSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o ModerationCaseSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *ModerationCaseSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ModerationCaseSlice) ReloadAllG(ctx context.Context) error
- func (o ModerationCaseSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o ModerationCaseSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type ModerationConfig
- func (o *ModerationConfig) AddGuildModerationBans(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *ModerationConfig) AddGuildModerationBansG(ctx context.Context, insert bool, related ...*ModerationBan) error
- func (o *ModerationConfig) AddGuildModerationCases(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *ModerationConfig) AddGuildModerationCasesG(ctx context.Context, insert bool, related ...*ModerationCase) error
- func (o *ModerationConfig) AddGuildModerationMutes(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *ModerationConfig) AddGuildModerationMutesG(ctx context.Context, insert bool, related ...*ModerationMute) error
- func (o *ModerationConfig) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ModerationConfig) DeleteG(ctx context.Context) (int64, error)
- func (o *ModerationConfig) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *ModerationConfig) GetGuildModerationBans() ModerationBanSlice
- func (o *ModerationConfig) GetGuildModerationCases() ModerationCaseSlice
- func (o *ModerationConfig) GetGuildModerationMutes() ModerationMuteSlice
- func (o *ModerationConfig) GuildModerationBans(mods ...qm.QueryMod) moderationBanQuery
- func (o *ModerationConfig) GuildModerationCases(mods ...qm.QueryMod) moderationCaseQuery
- func (o *ModerationConfig) GuildModerationMutes(mods ...qm.QueryMod) moderationMuteQuery
- func (o *ModerationConfig) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *ModerationConfig) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *ModerationConfig) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ModerationConfig) ReloadG(ctx context.Context) error
- func (o *ModerationConfig) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *ModerationConfig) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *ModerationConfig) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *ModerationConfig) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type ModerationConfigSlice
- func (o ModerationConfigSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o ModerationConfigSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *ModerationConfigSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ModerationConfigSlice) ReloadAllG(ctx context.Context) error
- func (o ModerationConfigSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o ModerationConfigSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type ModerationMessageLog
- func (o *ModerationMessageLog) AddLogModerationMessageLogsMessages(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *ModerationMessageLog) AddLogModerationMessageLogsMessagesG(ctx context.Context, insert bool, related ...*ModerationMessageLogsMessage) error
- func (o *ModerationMessageLog) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ModerationMessageLog) DeleteG(ctx context.Context) (int64, error)
- func (o *ModerationMessageLog) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *ModerationMessageLog) GetLogModerationMessageLogsMessages() ModerationMessageLogsMessageSlice
- func (o *ModerationMessageLog) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *ModerationMessageLog) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *ModerationMessageLog) LogModerationMessageLogsMessages(mods ...qm.QueryMod) moderationMessageLogsMessageQuery
- func (o *ModerationMessageLog) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ModerationMessageLog) ReloadG(ctx context.Context) error
- func (o *ModerationMessageLog) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *ModerationMessageLog) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *ModerationMessageLog) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *ModerationMessageLog) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type ModerationMessageLogSlice
- func (o ModerationMessageLogSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o ModerationMessageLogSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *ModerationMessageLogSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ModerationMessageLogSlice) ReloadAllG(ctx context.Context) error
- func (o ModerationMessageLogSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o ModerationMessageLogSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type ModerationMessageLogsMessage
- func (o *ModerationMessageLogsMessage) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ModerationMessageLogsMessage) DeleteG(ctx context.Context) (int64, error)
- func (o *ModerationMessageLogsMessage) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *ModerationMessageLogsMessage) GetLog() *ModerationMessageLog
- func (o *ModerationMessageLogsMessage) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *ModerationMessageLogsMessage) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *ModerationMessageLogsMessage) Log(mods ...qm.QueryMod) moderationMessageLogQuery
- func (o *ModerationMessageLogsMessage) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ModerationMessageLogsMessage) ReloadG(ctx context.Context) error
- func (o *ModerationMessageLogsMessage) SetLog(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *ModerationMessageLogsMessage) SetLogG(ctx context.Context, insert bool, related *ModerationMessageLog) error
- func (o *ModerationMessageLogsMessage) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *ModerationMessageLogsMessage) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *ModerationMessageLogsMessage) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *ModerationMessageLogsMessage) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type ModerationMessageLogsMessageSlice
- func (o ModerationMessageLogsMessageSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o ModerationMessageLogsMessageSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *ModerationMessageLogsMessageSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ModerationMessageLogsMessageSlice) ReloadAllG(ctx context.Context) error
- func (o ModerationMessageLogsMessageSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o ModerationMessageLogsMessageSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type ModerationMute
- func (o *ModerationMute) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ModerationMute) DeleteG(ctx context.Context) (int64, error)
- func (o *ModerationMute) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *ModerationMute) GetGuild() *ModerationConfig
- func (o *ModerationMute) Guild(mods ...qm.QueryMod) moderationConfigQuery
- func (o *ModerationMute) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *ModerationMute) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *ModerationMute) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ModerationMute) ReloadG(ctx context.Context) error
- func (o *ModerationMute) SetGuild(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *ModerationMute) SetGuildG(ctx context.Context, insert bool, related *ModerationConfig) error
- func (o *ModerationMute) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *ModerationMute) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *ModerationMute) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *ModerationMute) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type ModerationMuteSlice
- func (o ModerationMuteSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o ModerationMuteSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *ModerationMuteSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ModerationMuteSlice) ReloadAllG(ctx context.Context) error
- func (o ModerationMuteSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o ModerationMuteSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type UpsertOptionFunc
- type UpsertOptions
Constants ¶
This section is empty.
Variables ¶
var ErrSyncFail = errors.New("models: failed to synchronize data after insert")
ErrSyncFail occurs during insert when the record could not be retrieved in order to populate default value information. This usually happens when LastInsertId fails or there was a primary key configuration that was not resolvable.
var ModerationBanColumns = struct { GuildID string UserID string UnbanAt string }{ GuildID: "guild_id", UserID: "user_id", UnbanAt: "unban_at", }
var ModerationBanRels = struct { Guild string }{ Guild: "Guild", }
ModerationBanRels is where relationship names are stored.
var ModerationBanTableColumns = struct { GuildID string UserID string UnbanAt string }{ GuildID: "moderation_bans.guild_id", UserID: "moderation_bans.user_id", UnbanAt: "moderation_bans.unban_at", }
var ModerationBanWhere = struct { GuildID whereHelperstring UserID whereHelperstring UnbanAt whereHelpertime_Time }{ GuildID: whereHelperstring{/* contains filtered or unexported fields */}, UserID: whereHelperstring{/* contains filtered or unexported fields */}, UnbanAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var ModerationCaseColumns = struct { CaseID string GuildID string StaffID string StaffUsername string OffenderID string OffenderUsername string Reason string Action string LogLink string ChannelID string ChannelName string }{ CaseID: "case_id", GuildID: "guild_id", StaffID: "staff_id", StaffUsername: "staff_username", OffenderID: "offender_id", OffenderUsername: "offender_username", Reason: "reason", Action: "action", LogLink: "log_link", ChannelID: "channel_id", ChannelName: "channel_name", }
var ModerationCaseRels = struct { Guild string }{ Guild: "Guild", }
ModerationCaseRels is where relationship names are stored.
var ModerationCaseTableColumns = struct { CaseID string GuildID string StaffID string StaffUsername string OffenderID string OffenderUsername string Reason string Action string LogLink string ChannelID string ChannelName string }{ CaseID: "moderation_cases.case_id", GuildID: "moderation_cases.guild_id", StaffID: "moderation_cases.staff_id", StaffUsername: "moderation_cases.staff_username", OffenderID: "moderation_cases.offender_id", OffenderUsername: "moderation_cases.offender_username", Reason: "moderation_cases.reason", Action: "moderation_cases.action", LogLink: "moderation_cases.log_link", ChannelID: "moderation_cases.channel_id", ChannelName: "moderation_cases.channel_name", }
var ModerationCaseWhere = struct { CaseID whereHelperint64 GuildID whereHelperstring StaffID whereHelperstring StaffUsername whereHelperstring OffenderID whereHelperstring OffenderUsername whereHelperstring Reason whereHelperstring Action whereHelperstring LogLink whereHelperstring ChannelID whereHelperstring ChannelName whereHelperstring }{ CaseID: whereHelperint64{/* contains filtered or unexported fields */}, GuildID: whereHelperstring{/* contains filtered or unexported fields */}, StaffID: whereHelperstring{/* contains filtered or unexported fields */}, StaffUsername: whereHelperstring{/* contains filtered or unexported fields */}, OffenderID: whereHelperstring{/* contains filtered or unexported fields */}, OffenderUsername: whereHelperstring{/* contains filtered or unexported fields */}, Reason: whereHelperstring{/* contains filtered or unexported fields */}, Action: whereHelperstring{/* contains filtered or unexported fields */}, LogLink: whereHelperstring{/* contains filtered or unexported fields */}, ChannelID: whereHelperstring{/* contains filtered or unexported fields */}, ChannelName: whereHelperstring{/* contains filtered or unexported fields */}, }
var ModerationConfigColumns = struct { GuildID string ModerationEnabled string ModerationTriggerDeletionEnabled string ModerationTriggerDeletionSeconds string ModerationResponseDeletionEnabled string ModerationResponseDeletionSeconds string ModerationLogChannel string WarnRequiredRoles string MuteRequiredRoles string MuteRole string MuteManageRole string MuteUpdateRoles string KickRequiredRoles string BanRequiredRoles string LastCaseID string }{ GuildID: "guild_id", ModerationEnabled: "moderation_enabled", ModerationTriggerDeletionEnabled: "moderation_trigger_deletion_enabled", ModerationTriggerDeletionSeconds: "moderation_trigger_deletion_seconds", ModerationResponseDeletionEnabled: "moderation_response_deletion_enabled", ModerationResponseDeletionSeconds: "moderation_response_deletion_seconds", ModerationLogChannel: "moderation_log_channel", WarnRequiredRoles: "warn_required_roles", MuteRequiredRoles: "mute_required_roles", MuteRole: "mute_role", MuteManageRole: "mute_manage_role", MuteUpdateRoles: "mute_update_roles", KickRequiredRoles: "kick_required_roles", BanRequiredRoles: "ban_required_roles", LastCaseID: "last_case_id", }
var ModerationConfigRels = struct { GuildModerationBans string GuildModerationCases string GuildModerationMutes string }{ GuildModerationBans: "GuildModerationBans", GuildModerationCases: "GuildModerationCases", GuildModerationMutes: "GuildModerationMutes", }
ModerationConfigRels is where relationship names are stored.
var ModerationConfigTableColumns = struct { GuildID string ModerationEnabled string ModerationTriggerDeletionEnabled string ModerationTriggerDeletionSeconds string ModerationResponseDeletionEnabled string ModerationResponseDeletionSeconds string ModerationLogChannel string WarnRequiredRoles string MuteRequiredRoles string MuteRole string MuteManageRole string MuteUpdateRoles string KickRequiredRoles string BanRequiredRoles string LastCaseID string }{ GuildID: "moderation_config.guild_id", ModerationEnabled: "moderation_config.moderation_enabled", ModerationTriggerDeletionEnabled: "moderation_config.moderation_trigger_deletion_enabled", ModerationTriggerDeletionSeconds: "moderation_config.moderation_trigger_deletion_seconds", ModerationResponseDeletionEnabled: "moderation_config.moderation_response_deletion_enabled", ModerationResponseDeletionSeconds: "moderation_config.moderation_response_deletion_seconds", ModerationLogChannel: "moderation_config.moderation_log_channel", WarnRequiredRoles: "moderation_config.warn_required_roles", MuteRequiredRoles: "moderation_config.mute_required_roles", MuteRole: "moderation_config.mute_role", MuteManageRole: "moderation_config.mute_manage_role", MuteUpdateRoles: "moderation_config.mute_update_roles", KickRequiredRoles: "moderation_config.kick_required_roles", BanRequiredRoles: "moderation_config.ban_required_roles", LastCaseID: "moderation_config.last_case_id", }
var ModerationConfigWhere = struct { GuildID whereHelperstring ModerationEnabled whereHelperbool ModerationTriggerDeletionEnabled whereHelperbool ModerationTriggerDeletionSeconds whereHelperint64 ModerationResponseDeletionEnabled whereHelperbool ModerationResponseDeletionSeconds whereHelperint64 ModerationLogChannel whereHelperstring WarnRequiredRoles whereHelpertypes_StringArray MuteRequiredRoles whereHelpertypes_StringArray MuteRole whereHelperstring MuteManageRole whereHelperbool MuteUpdateRoles whereHelpertypes_StringArray KickRequiredRoles whereHelpertypes_StringArray BanRequiredRoles whereHelpertypes_StringArray LastCaseID whereHelperint64 }{ GuildID: whereHelperstring{/* contains filtered or unexported fields */}, ModerationEnabled: whereHelperbool{/* contains filtered or unexported fields */}, ModerationTriggerDeletionEnabled: whereHelperbool{/* contains filtered or unexported fields */}, ModerationTriggerDeletionSeconds: whereHelperint64{/* contains filtered or unexported fields */}, ModerationResponseDeletionEnabled: whereHelperbool{/* contains filtered or unexported fields */}, ModerationResponseDeletionSeconds: whereHelperint64{/* contains filtered or unexported fields */}, ModerationLogChannel: whereHelperstring{/* contains filtered or unexported fields */}, WarnRequiredRoles: whereHelpertypes_StringArray{/* contains filtered or unexported fields */}, MuteRequiredRoles: whereHelpertypes_StringArray{/* contains filtered or unexported fields */}, MuteRole: whereHelperstring{/* contains filtered or unexported fields */}, MuteManageRole: whereHelperbool{/* contains filtered or unexported fields */}, MuteUpdateRoles: whereHelpertypes_StringArray{/* contains filtered or unexported fields */}, KickRequiredRoles: whereHelpertypes_StringArray{/* contains filtered or unexported fields */}, BanRequiredRoles: whereHelpertypes_StringArray{/* contains filtered or unexported fields */}, LastCaseID: whereHelperint64{/* contains filtered or unexported fields */}, }
var ModerationMessageLogColumns = struct { ID string GuildID string CaseID string ChannelID string ChannelName string AuthorID string AuthorUsername string CreatedAt string }{ ID: "id", GuildID: "guild_id", CaseID: "case_id", ChannelID: "channel_id", ChannelName: "channel_name", AuthorID: "author_id", AuthorUsername: "author_username", CreatedAt: "created_at", }
var ModerationMessageLogRels = struct { LogModerationMessageLogsMessages string }{ LogModerationMessageLogsMessages: "LogModerationMessageLogsMessages", }
ModerationMessageLogRels is where relationship names are stored.
var ModerationMessageLogTableColumns = struct { ID string GuildID string CaseID string ChannelID string ChannelName string AuthorID string AuthorUsername string CreatedAt string }{ ID: "moderation_message_logs.id", GuildID: "moderation_message_logs.guild_id", CaseID: "moderation_message_logs.case_id", ChannelID: "moderation_message_logs.channel_id", ChannelName: "moderation_message_logs.channel_name", AuthorID: "moderation_message_logs.author_id", AuthorUsername: "moderation_message_logs.author_username", CreatedAt: "moderation_message_logs.created_at", }
var ModerationMessageLogWhere = struct { ID whereHelperint64 GuildID whereHelperstring CaseID whereHelperint64 ChannelID whereHelperstring ChannelName whereHelperstring AuthorID whereHelperstring AuthorUsername whereHelperstring CreatedAt whereHelpertime_Time }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, GuildID: whereHelperstring{/* contains filtered or unexported fields */}, CaseID: whereHelperint64{/* contains filtered or unexported fields */}, ChannelID: whereHelperstring{/* contains filtered or unexported fields */}, ChannelName: whereHelperstring{/* contains filtered or unexported fields */}, AuthorID: whereHelperstring{/* contains filtered or unexported fields */}, AuthorUsername: whereHelperstring{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var ModerationMessageLogsMessageColumns = struct { ID string LogID string GuildID string AuthorID string AuthorUsername string Content string CreatedAt string IsDeleted string }{ ID: "id", LogID: "log_id", GuildID: "guild_id", AuthorID: "author_id", AuthorUsername: "author_username", Content: "content", CreatedAt: "created_at", IsDeleted: "is_deleted", }
var ModerationMessageLogsMessageRels = struct { Log string }{ Log: "Log", }
ModerationMessageLogsMessageRels is where relationship names are stored.
var ModerationMessageLogsMessageTableColumns = struct { ID string LogID string GuildID string AuthorID string AuthorUsername string Content string CreatedAt string IsDeleted string }{ ID: "moderation_message_logs_messages.id", LogID: "moderation_message_logs_messages.log_id", GuildID: "moderation_message_logs_messages.guild_id", AuthorID: "moderation_message_logs_messages.author_id", AuthorUsername: "moderation_message_logs_messages.author_username", Content: "moderation_message_logs_messages.content", CreatedAt: "moderation_message_logs_messages.created_at", IsDeleted: "moderation_message_logs_messages.is_deleted", }
var ModerationMessageLogsMessageWhere = struct { ID whereHelperint64 LogID whereHelperint64 GuildID whereHelperstring AuthorID whereHelperstring AuthorUsername whereHelperstring Content whereHelperstring CreatedAt whereHelpertime_Time IsDeleted whereHelperbool }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, LogID: whereHelperint64{/* contains filtered or unexported fields */}, GuildID: whereHelperstring{/* contains filtered or unexported fields */}, AuthorID: whereHelperstring{/* contains filtered or unexported fields */}, AuthorUsername: whereHelperstring{/* contains filtered or unexported fields */}, Content: whereHelperstring{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, IsDeleted: whereHelperbool{/* contains filtered or unexported fields */}, }
var ModerationMuteColumns = struct { GuildID string UserID string Roles string UnmuteAt string }{ GuildID: "guild_id", UserID: "user_id", Roles: "roles", UnmuteAt: "unmute_at", }
var ModerationMuteRels = struct { Guild string }{ Guild: "Guild", }
ModerationMuteRels is where relationship names are stored.
var ModerationMuteTableColumns = struct { GuildID string UserID string Roles string UnmuteAt string }{ GuildID: "moderation_mutes.guild_id", UserID: "moderation_mutes.user_id", Roles: "moderation_mutes.roles", UnmuteAt: "moderation_mutes.unmute_at", }
var ModerationMuteWhere = struct { GuildID whereHelperstring UserID whereHelperstring Roles whereHelpertypes_StringArray UnmuteAt whereHelpertime_Time }{ GuildID: whereHelperstring{/* contains filtered or unexported fields */}, UserID: whereHelperstring{/* contains filtered or unexported fields */}, Roles: whereHelpertypes_StringArray{/* contains filtered or unexported fields */}, UnmuteAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var TableNames = struct { ModerationBans string ModerationCases string ModerationConfig string ModerationMessageLogs string ModerationMessageLogsMessages string ModerationMutes string }{ ModerationBans: "moderation_bans", ModerationCases: "moderation_cases", ModerationConfig: "moderation_config", ModerationMessageLogs: "moderation_message_logs", ModerationMessageLogsMessages: "moderation_message_logs_messages", ModerationMutes: "moderation_mutes", }
var ViewNames = struct {
}{}
Functions ¶
func ModerationBanExists ¶
func ModerationBanExists(ctx context.Context, exec boil.ContextExecutor, guildID string, userID string) (bool, error)
ModerationBanExists checks if the ModerationBan row exists.
func ModerationBanExistsG ¶
ModerationBanExistsG checks if the ModerationBan row exists.
func ModerationBans ¶
ModerationBans retrieves all the records using an executor.
func ModerationCaseExists ¶
func ModerationCaseExists(ctx context.Context, exec boil.ContextExecutor, guildID string, caseID int64) (bool, error)
ModerationCaseExists checks if the ModerationCase row exists.
func ModerationCaseExistsG ¶
ModerationCaseExistsG checks if the ModerationCase row exists.
func ModerationCases ¶
ModerationCases retrieves all the records using an executor.
func ModerationConfigExists ¶
func ModerationConfigExists(ctx context.Context, exec boil.ContextExecutor, guildID string) (bool, error)
ModerationConfigExists checks if the ModerationConfig row exists.
func ModerationConfigExistsG ¶
ModerationConfigExistsG checks if the ModerationConfig row exists.
func ModerationConfigs ¶
ModerationConfigs retrieves all the records using an executor.
func ModerationMessageLogExists ¶
func ModerationMessageLogExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
ModerationMessageLogExists checks if the ModerationMessageLog row exists.
func ModerationMessageLogExistsG ¶
ModerationMessageLogExistsG checks if the ModerationMessageLog row exists.
func ModerationMessageLogs ¶
ModerationMessageLogs retrieves all the records using an executor.
func ModerationMessageLogsMessageExists ¶
func ModerationMessageLogsMessageExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
ModerationMessageLogsMessageExists checks if the ModerationMessageLogsMessage row exists.
func ModerationMessageLogsMessageExistsG ¶
ModerationMessageLogsMessageExistsG checks if the ModerationMessageLogsMessage row exists.
func ModerationMessageLogsMessages ¶
ModerationMessageLogsMessages retrieves all the records using an executor.
func ModerationMuteExists ¶
func ModerationMuteExists(ctx context.Context, exec boil.ContextExecutor, guildID string, userID string) (bool, error)
ModerationMuteExists checks if the ModerationMute row exists.
func ModerationMuteExistsG ¶
ModerationMuteExistsG checks if the ModerationMute row exists.
func ModerationMutes ¶
ModerationMutes retrieves all the records using an executor.
Types ¶
type M ¶
type M map[string]interface{}
M type is for providing columns and column values to UpdateAll.
type ModerationBan ¶
type ModerationBan struct {
GuildID string `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"`
UserID string `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
UnbanAt time.Time `boil:"unban_at" json:"unban_at" toml:"unban_at" yaml:"unban_at"`
R *moderationBanR `boil:"-" json:"-" toml:"-" yaml:"-"`
L moderationBanL `boil:"-" json:"-" toml:"-" yaml:"-"`
}
ModerationBan is an object representing the database table.
func FindModerationBan ¶
func FindModerationBan(ctx context.Context, exec boil.ContextExecutor, guildID string, userID string, selectCols ...string) (*ModerationBan, error)
FindModerationBan retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindModerationBanG ¶
func FindModerationBanG(ctx context.Context, guildID string, userID string, selectCols ...string) (*ModerationBan, error)
FindModerationBanG retrieves a single record by ID.
func (*ModerationBan) Delete ¶
func (o *ModerationBan) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single ModerationBan record with an executor. Delete will match against the primary key column to find the record to delete.
func (*ModerationBan) DeleteG ¶
func (o *ModerationBan) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single ModerationBan record. DeleteG will match against the primary key column to find the record to delete.
func (*ModerationBan) Exists ¶
func (o *ModerationBan) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the ModerationBan row exists.
func (*ModerationBan) GetGuild ¶
func (o *ModerationBan) GetGuild() *ModerationConfig
func (*ModerationBan) Guild ¶
func (o *ModerationBan) Guild(mods ...qm.QueryMod) moderationConfigQuery
Guild pointed to by the foreign key.
func (*ModerationBan) Insert ¶
func (o *ModerationBan) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*ModerationBan) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*ModerationBan) Reload ¶
func (o *ModerationBan) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*ModerationBan) ReloadG ¶
func (o *ModerationBan) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*ModerationBan) SetGuild ¶
func (o *ModerationBan) SetGuild(ctx context.Context, exec boil.ContextExecutor, insert bool, related *ModerationConfig) error
SetGuild of the moderationBan to the related item. Sets o.R.Guild to related. Adds o to related.R.GuildModerationBans.
func (*ModerationBan) SetGuildG ¶
func (o *ModerationBan) SetGuildG(ctx context.Context, insert bool, related *ModerationConfig) error
SetGuildG of the moderationBan to the related item. Sets o.R.Guild to related. Adds o to related.R.GuildModerationBans. Uses the global database handle.
func (*ModerationBan) Update ¶
func (o *ModerationBan) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the ModerationBan. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*ModerationBan) UpdateG ¶
UpdateG a single ModerationBan record using the global executor. See Update for more documentation.
func (*ModerationBan) Upsert ¶
func (o *ModerationBan) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type ModerationBanSlice ¶
type ModerationBanSlice []*ModerationBan
ModerationBanSlice is an alias for a slice of pointers to ModerationBan. This should almost always be used instead of []ModerationBan.
func (ModerationBanSlice) DeleteAll ¶
func (o ModerationBanSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (ModerationBanSlice) DeleteAllG ¶
func (o ModerationBanSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*ModerationBanSlice) ReloadAll ¶
func (o *ModerationBanSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*ModerationBanSlice) ReloadAllG ¶
func (o *ModerationBanSlice) ReloadAllG(ctx context.Context) error
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (ModerationBanSlice) UpdateAll ¶
func (o ModerationBanSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (ModerationBanSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.
type ModerationCase ¶
type ModerationCase struct {
CaseID int64 `boil:"case_id" json:"case_id" toml:"case_id" yaml:"case_id"`
GuildID string `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"`
StaffID string `boil:"staff_id" json:"staff_id" toml:"staff_id" yaml:"staff_id"`
StaffUsername string `boil:"staff_username" json:"staff_username" toml:"staff_username" yaml:"staff_username"`
OffenderID string `boil:"offender_id" json:"offender_id" toml:"offender_id" yaml:"offender_id"`
OffenderUsername string `boil:"offender_username" json:"offender_username" toml:"offender_username" yaml:"offender_username"`
Reason string `boil:"reason" json:"reason" toml:"reason" yaml:"reason"`
Action string `boil:"action" json:"action" toml:"action" yaml:"action"`
LogLink string `boil:"log_link" json:"log_link" toml:"log_link" yaml:"log_link"`
ChannelID string `boil:"channel_id" json:"channel_id" toml:"channel_id" yaml:"channel_id"`
ChannelName string `boil:"channel_name" json:"channel_name" toml:"channel_name" yaml:"channel_name"`
R *moderationCaseR `boil:"-" json:"-" toml:"-" yaml:"-"`
L moderationCaseL `boil:"-" json:"-" toml:"-" yaml:"-"`
}
ModerationCase is an object representing the database table.
func FindModerationCase ¶
func FindModerationCase(ctx context.Context, exec boil.ContextExecutor, guildID string, caseID int64, selectCols ...string) (*ModerationCase, error)
FindModerationCase retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindModerationCaseG ¶
func FindModerationCaseG(ctx context.Context, guildID string, caseID int64, selectCols ...string) (*ModerationCase, error)
FindModerationCaseG retrieves a single record by ID.
func (*ModerationCase) Delete ¶
func (o *ModerationCase) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single ModerationCase record with an executor. Delete will match against the primary key column to find the record to delete.
func (*ModerationCase) DeleteG ¶
func (o *ModerationCase) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single ModerationCase record. DeleteG will match against the primary key column to find the record to delete.
func (*ModerationCase) Exists ¶
func (o *ModerationCase) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the ModerationCase row exists.
func (*ModerationCase) GetGuild ¶
func (o *ModerationCase) GetGuild() *ModerationConfig
func (*ModerationCase) Guild ¶
func (o *ModerationCase) Guild(mods ...qm.QueryMod) moderationConfigQuery
Guild pointed to by the foreign key.
func (*ModerationCase) Insert ¶
func (o *ModerationCase) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*ModerationCase) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*ModerationCase) Reload ¶
func (o *ModerationCase) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*ModerationCase) ReloadG ¶
func (o *ModerationCase) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*ModerationCase) SetGuild ¶
func (o *ModerationCase) SetGuild(ctx context.Context, exec boil.ContextExecutor, insert bool, related *ModerationConfig) error
SetGuild of the moderationCase to the related item. Sets o.R.Guild to related. Adds o to related.R.GuildModerationCases.
func (*ModerationCase) SetGuildG ¶
func (o *ModerationCase) SetGuildG(ctx context.Context, insert bool, related *ModerationConfig) error
SetGuildG of the moderationCase to the related item. Sets o.R.Guild to related. Adds o to related.R.GuildModerationCases. Uses the global database handle.
func (*ModerationCase) Update ¶
func (o *ModerationCase) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the ModerationCase. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*ModerationCase) UpdateG ¶
UpdateG a single ModerationCase record using the global executor. See Update for more documentation.
func (*ModerationCase) Upsert ¶
func (o *ModerationCase) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type ModerationCaseSlice ¶
type ModerationCaseSlice []*ModerationCase
ModerationCaseSlice is an alias for a slice of pointers to ModerationCase. This should almost always be used instead of []ModerationCase.
func (ModerationCaseSlice) DeleteAll ¶
func (o ModerationCaseSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (ModerationCaseSlice) DeleteAllG ¶
func (o ModerationCaseSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*ModerationCaseSlice) ReloadAll ¶
func (o *ModerationCaseSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*ModerationCaseSlice) ReloadAllG ¶
func (o *ModerationCaseSlice) ReloadAllG(ctx context.Context) error
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (ModerationCaseSlice) UpdateAll ¶
func (o ModerationCaseSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (ModerationCaseSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.
type ModerationConfig ¶
type ModerationConfig struct {
GuildID string `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"`
ModerationEnabled bool `boil:"moderation_enabled" json:"moderation_enabled" toml:"moderation_enabled" yaml:"moderation_enabled"`
ModerationTriggerDeletionEnabled bool `` /* 171-byte string literal not displayed */
ModerationTriggerDeletionSeconds int64 `` /* 171-byte string literal not displayed */
ModerationResponseDeletionEnabled bool `` /* 175-byte string literal not displayed */
ModerationResponseDeletionSeconds int64 `` /* 175-byte string literal not displayed */
ModerationLogChannel string `boil:"moderation_log_channel" json:"moderation_log_channel" toml:"moderation_log_channel" yaml:"moderation_log_channel"`
WarnRequiredRoles types.StringArray `boil:"warn_required_roles" json:"warn_required_roles" toml:"warn_required_roles" yaml:"warn_required_roles"`
MuteRequiredRoles types.StringArray `boil:"mute_required_roles" json:"mute_required_roles" toml:"mute_required_roles" yaml:"mute_required_roles"`
MuteRole string `boil:"mute_role" json:"mute_role" toml:"mute_role" yaml:"mute_role"`
MuteManageRole bool `boil:"mute_manage_role" json:"mute_manage_role" toml:"mute_manage_role" yaml:"mute_manage_role"`
MuteUpdateRoles types.StringArray `boil:"mute_update_roles" json:"mute_update_roles" toml:"mute_update_roles" yaml:"mute_update_roles"`
KickRequiredRoles types.StringArray `boil:"kick_required_roles" json:"kick_required_roles" toml:"kick_required_roles" yaml:"kick_required_roles"`
BanRequiredRoles types.StringArray `boil:"ban_required_roles" json:"ban_required_roles" toml:"ban_required_roles" yaml:"ban_required_roles"`
LastCaseID int64 `boil:"last_case_id" json:"last_case_id" toml:"last_case_id" yaml:"last_case_id"`
R *moderationConfigR `boil:"-" json:"-" toml:"-" yaml:"-"`
L moderationConfigL `boil:"-" json:"-" toml:"-" yaml:"-"`
}
ModerationConfig is an object representing the database table.
func FindModerationConfig ¶
func FindModerationConfig(ctx context.Context, exec boil.ContextExecutor, guildID string, selectCols ...string) (*ModerationConfig, error)
FindModerationConfig retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindModerationConfigG ¶
func FindModerationConfigG(ctx context.Context, guildID string, selectCols ...string) (*ModerationConfig, error)
FindModerationConfigG retrieves a single record by ID.
func (*ModerationConfig) AddGuildModerationBans ¶
func (o *ModerationConfig) AddGuildModerationBans(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ModerationBan) error
AddGuildModerationBans adds the given related objects to the existing relationships of the moderation_config, optionally inserting them as new records. Appends related to o.R.GuildModerationBans. Sets related.R.Guild appropriately.
func (*ModerationConfig) AddGuildModerationBansG ¶
func (o *ModerationConfig) AddGuildModerationBansG(ctx context.Context, insert bool, related ...*ModerationBan) error
AddGuildModerationBansG adds the given related objects to the existing relationships of the moderation_config, optionally inserting them as new records. Appends related to o.R.GuildModerationBans. Sets related.R.Guild appropriately. Uses the global database handle.
func (*ModerationConfig) AddGuildModerationCases ¶
func (o *ModerationConfig) AddGuildModerationCases(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ModerationCase) error
AddGuildModerationCases adds the given related objects to the existing relationships of the moderation_config, optionally inserting them as new records. Appends related to o.R.GuildModerationCases. Sets related.R.Guild appropriately.
func (*ModerationConfig) AddGuildModerationCasesG ¶
func (o *ModerationConfig) AddGuildModerationCasesG(ctx context.Context, insert bool, related ...*ModerationCase) error
AddGuildModerationCasesG adds the given related objects to the existing relationships of the moderation_config, optionally inserting them as new records. Appends related to o.R.GuildModerationCases. Sets related.R.Guild appropriately. Uses the global database handle.
func (*ModerationConfig) AddGuildModerationMutes ¶
func (o *ModerationConfig) AddGuildModerationMutes(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ModerationMute) error
AddGuildModerationMutes adds the given related objects to the existing relationships of the moderation_config, optionally inserting them as new records. Appends related to o.R.GuildModerationMutes. Sets related.R.Guild appropriately.
func (*ModerationConfig) AddGuildModerationMutesG ¶
func (o *ModerationConfig) AddGuildModerationMutesG(ctx context.Context, insert bool, related ...*ModerationMute) error
AddGuildModerationMutesG adds the given related objects to the existing relationships of the moderation_config, optionally inserting them as new records. Appends related to o.R.GuildModerationMutes. Sets related.R.Guild appropriately. Uses the global database handle.
func (*ModerationConfig) Delete ¶
func (o *ModerationConfig) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single ModerationConfig record with an executor. Delete will match against the primary key column to find the record to delete.
func (*ModerationConfig) DeleteG ¶
func (o *ModerationConfig) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single ModerationConfig record. DeleteG will match against the primary key column to find the record to delete.
func (*ModerationConfig) Exists ¶
func (o *ModerationConfig) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the ModerationConfig row exists.
func (*ModerationConfig) GetGuildModerationBans ¶
func (o *ModerationConfig) GetGuildModerationBans() ModerationBanSlice
func (*ModerationConfig) GetGuildModerationCases ¶
func (o *ModerationConfig) GetGuildModerationCases() ModerationCaseSlice
func (*ModerationConfig) GetGuildModerationMutes ¶
func (o *ModerationConfig) GetGuildModerationMutes() ModerationMuteSlice
func (*ModerationConfig) GuildModerationBans ¶
func (o *ModerationConfig) GuildModerationBans(mods ...qm.QueryMod) moderationBanQuery
GuildModerationBans retrieves all the moderation_ban's ModerationBans with an executor via guild_id column.
func (*ModerationConfig) GuildModerationCases ¶
func (o *ModerationConfig) GuildModerationCases(mods ...qm.QueryMod) moderationCaseQuery
GuildModerationCases retrieves all the moderation_case's ModerationCases with an executor via guild_id column.
func (*ModerationConfig) GuildModerationMutes ¶
func (o *ModerationConfig) GuildModerationMutes(mods ...qm.QueryMod) moderationMuteQuery
GuildModerationMutes retrieves all the moderation_mute's ModerationMutes with an executor via guild_id column.
func (*ModerationConfig) Insert ¶
func (o *ModerationConfig) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*ModerationConfig) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*ModerationConfig) Reload ¶
func (o *ModerationConfig) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*ModerationConfig) ReloadG ¶
func (o *ModerationConfig) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*ModerationConfig) Update ¶
func (o *ModerationConfig) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the ModerationConfig. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*ModerationConfig) UpdateG ¶
UpdateG a single ModerationConfig record using the global executor. See Update for more documentation.
func (*ModerationConfig) Upsert ¶
func (o *ModerationConfig) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type ModerationConfigSlice ¶
type ModerationConfigSlice []*ModerationConfig
ModerationConfigSlice is an alias for a slice of pointers to ModerationConfig. This should almost always be used instead of []ModerationConfig.
func (ModerationConfigSlice) DeleteAll ¶
func (o ModerationConfigSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (ModerationConfigSlice) DeleteAllG ¶
func (o ModerationConfigSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*ModerationConfigSlice) ReloadAll ¶
func (o *ModerationConfigSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*ModerationConfigSlice) ReloadAllG ¶
func (o *ModerationConfigSlice) ReloadAllG(ctx context.Context) error
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (ModerationConfigSlice) UpdateAll ¶
func (o ModerationConfigSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (ModerationConfigSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.
type ModerationMessageLog ¶
type ModerationMessageLog struct {
ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"`
GuildID string `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"`
CaseID int64 `boil:"case_id" json:"case_id" toml:"case_id" yaml:"case_id"`
ChannelID string `boil:"channel_id" json:"channel_id" toml:"channel_id" yaml:"channel_id"`
ChannelName string `boil:"channel_name" json:"channel_name" toml:"channel_name" yaml:"channel_name"`
AuthorID string `boil:"author_id" json:"author_id" toml:"author_id" yaml:"author_id"`
AuthorUsername string `boil:"author_username" json:"author_username" toml:"author_username" yaml:"author_username"`
CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
R *moderationMessageLogR `boil:"-" json:"-" toml:"-" yaml:"-"`
L moderationMessageLogL `boil:"-" json:"-" toml:"-" yaml:"-"`
}
ModerationMessageLog is an object representing the database table.
func FindModerationMessageLog ¶
func FindModerationMessageLog(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*ModerationMessageLog, error)
FindModerationMessageLog retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindModerationMessageLogG ¶
func FindModerationMessageLogG(ctx context.Context, iD int64, selectCols ...string) (*ModerationMessageLog, error)
FindModerationMessageLogG retrieves a single record by ID.
func (*ModerationMessageLog) AddLogModerationMessageLogsMessages ¶
func (o *ModerationMessageLog) AddLogModerationMessageLogsMessages(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ModerationMessageLogsMessage) error
AddLogModerationMessageLogsMessages adds the given related objects to the existing relationships of the moderation_message_log, optionally inserting them as new records. Appends related to o.R.LogModerationMessageLogsMessages. Sets related.R.Log appropriately.
func (*ModerationMessageLog) AddLogModerationMessageLogsMessagesG ¶
func (o *ModerationMessageLog) AddLogModerationMessageLogsMessagesG(ctx context.Context, insert bool, related ...*ModerationMessageLogsMessage) error
AddLogModerationMessageLogsMessagesG adds the given related objects to the existing relationships of the moderation_message_log, optionally inserting them as new records. Appends related to o.R.LogModerationMessageLogsMessages. Sets related.R.Log appropriately. Uses the global database handle.
func (*ModerationMessageLog) Delete ¶
func (o *ModerationMessageLog) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single ModerationMessageLog record with an executor. Delete will match against the primary key column to find the record to delete.
func (*ModerationMessageLog) DeleteG ¶
func (o *ModerationMessageLog) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single ModerationMessageLog record. DeleteG will match against the primary key column to find the record to delete.
func (*ModerationMessageLog) Exists ¶
func (o *ModerationMessageLog) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the ModerationMessageLog row exists.
func (*ModerationMessageLog) GetLogModerationMessageLogsMessages ¶
func (o *ModerationMessageLog) GetLogModerationMessageLogsMessages() ModerationMessageLogsMessageSlice
func (*ModerationMessageLog) Insert ¶
func (o *ModerationMessageLog) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*ModerationMessageLog) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*ModerationMessageLog) LogModerationMessageLogsMessages ¶
func (o *ModerationMessageLog) LogModerationMessageLogsMessages(mods ...qm.QueryMod) moderationMessageLogsMessageQuery
LogModerationMessageLogsMessages retrieves all the moderation_message_logs_message's ModerationMessageLogsMessages with an executor via log_id column.
func (*ModerationMessageLog) Reload ¶
func (o *ModerationMessageLog) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*ModerationMessageLog) ReloadG ¶
func (o *ModerationMessageLog) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*ModerationMessageLog) Update ¶
func (o *ModerationMessageLog) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the ModerationMessageLog. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*ModerationMessageLog) UpdateG ¶
UpdateG a single ModerationMessageLog record using the global executor. See Update for more documentation.
func (*ModerationMessageLog) Upsert ¶
func (o *ModerationMessageLog) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type ModerationMessageLogSlice ¶
type ModerationMessageLogSlice []*ModerationMessageLog
ModerationMessageLogSlice is an alias for a slice of pointers to ModerationMessageLog. This should almost always be used instead of []ModerationMessageLog.
func (ModerationMessageLogSlice) DeleteAll ¶
func (o ModerationMessageLogSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (ModerationMessageLogSlice) DeleteAllG ¶
func (o ModerationMessageLogSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*ModerationMessageLogSlice) ReloadAll ¶
func (o *ModerationMessageLogSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*ModerationMessageLogSlice) ReloadAllG ¶
func (o *ModerationMessageLogSlice) ReloadAllG(ctx context.Context) error
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (ModerationMessageLogSlice) UpdateAll ¶
func (o ModerationMessageLogSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (ModerationMessageLogSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.
type ModerationMessageLogsMessage ¶
type ModerationMessageLogsMessage struct {
ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"`
LogID int64 `boil:"log_id" json:"log_id" toml:"log_id" yaml:"log_id"`
GuildID string `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"`
AuthorID string `boil:"author_id" json:"author_id" toml:"author_id" yaml:"author_id"`
AuthorUsername string `boil:"author_username" json:"author_username" toml:"author_username" yaml:"author_username"`
Content string `boil:"content" json:"content" toml:"content" yaml:"content"`
CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
IsDeleted bool `boil:"is_deleted" json:"is_deleted" toml:"is_deleted" yaml:"is_deleted"`
R *moderationMessageLogsMessageR `boil:"-" json:"-" toml:"-" yaml:"-"`
L moderationMessageLogsMessageL `boil:"-" json:"-" toml:"-" yaml:"-"`
}
ModerationMessageLogsMessage is an object representing the database table.
func FindModerationMessageLogsMessage ¶
func FindModerationMessageLogsMessage(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*ModerationMessageLogsMessage, error)
FindModerationMessageLogsMessage retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindModerationMessageLogsMessageG ¶
func FindModerationMessageLogsMessageG(ctx context.Context, iD int64, selectCols ...string) (*ModerationMessageLogsMessage, error)
FindModerationMessageLogsMessageG retrieves a single record by ID.
func (*ModerationMessageLogsMessage) Delete ¶
func (o *ModerationMessageLogsMessage) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single ModerationMessageLogsMessage record with an executor. Delete will match against the primary key column to find the record to delete.
func (*ModerationMessageLogsMessage) DeleteG ¶
func (o *ModerationMessageLogsMessage) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single ModerationMessageLogsMessage record. DeleteG will match against the primary key column to find the record to delete.
func (*ModerationMessageLogsMessage) Exists ¶
func (o *ModerationMessageLogsMessage) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the ModerationMessageLogsMessage row exists.
func (*ModerationMessageLogsMessage) GetLog ¶
func (o *ModerationMessageLogsMessage) GetLog() *ModerationMessageLog
func (*ModerationMessageLogsMessage) Insert ¶
func (o *ModerationMessageLogsMessage) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*ModerationMessageLogsMessage) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*ModerationMessageLogsMessage) Log ¶
func (o *ModerationMessageLogsMessage) Log(mods ...qm.QueryMod) moderationMessageLogQuery
Log pointed to by the foreign key.
func (*ModerationMessageLogsMessage) Reload ¶
func (o *ModerationMessageLogsMessage) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*ModerationMessageLogsMessage) ReloadG ¶
func (o *ModerationMessageLogsMessage) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*ModerationMessageLogsMessage) SetLog ¶
func (o *ModerationMessageLogsMessage) SetLog(ctx context.Context, exec boil.ContextExecutor, insert bool, related *ModerationMessageLog) error
SetLog of the moderationMessageLogsMessage to the related item. Sets o.R.Log to related. Adds o to related.R.LogModerationMessageLogsMessages.
func (*ModerationMessageLogsMessage) SetLogG ¶
func (o *ModerationMessageLogsMessage) SetLogG(ctx context.Context, insert bool, related *ModerationMessageLog) error
SetLogG of the moderationMessageLogsMessage to the related item. Sets o.R.Log to related. Adds o to related.R.LogModerationMessageLogsMessages. Uses the global database handle.
func (*ModerationMessageLogsMessage) Update ¶
func (o *ModerationMessageLogsMessage) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the ModerationMessageLogsMessage. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*ModerationMessageLogsMessage) UpdateG ¶
func (o *ModerationMessageLogsMessage) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
UpdateG a single ModerationMessageLogsMessage record using the global executor. See Update for more documentation.
func (*ModerationMessageLogsMessage) Upsert ¶
func (o *ModerationMessageLogsMessage) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
func (*ModerationMessageLogsMessage) UpsertG ¶
func (o *ModerationMessageLogsMessage) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error
UpsertG attempts an insert, and does an update or ignore on conflict.
type ModerationMessageLogsMessageSlice ¶
type ModerationMessageLogsMessageSlice []*ModerationMessageLogsMessage
ModerationMessageLogsMessageSlice is an alias for a slice of pointers to ModerationMessageLogsMessage. This should almost always be used instead of []ModerationMessageLogsMessage.
func (ModerationMessageLogsMessageSlice) DeleteAll ¶
func (o ModerationMessageLogsMessageSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (ModerationMessageLogsMessageSlice) DeleteAllG ¶
func (o ModerationMessageLogsMessageSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*ModerationMessageLogsMessageSlice) ReloadAll ¶
func (o *ModerationMessageLogsMessageSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*ModerationMessageLogsMessageSlice) ReloadAllG ¶
func (o *ModerationMessageLogsMessageSlice) ReloadAllG(ctx context.Context) error
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (ModerationMessageLogsMessageSlice) UpdateAll ¶
func (o ModerationMessageLogsMessageSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (ModerationMessageLogsMessageSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.
type ModerationMute ¶
type ModerationMute struct {
GuildID string `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"`
UserID string `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
Roles types.StringArray `boil:"roles" json:"roles" toml:"roles" yaml:"roles"`
UnmuteAt time.Time `boil:"unmute_at" json:"unmute_at" toml:"unmute_at" yaml:"unmute_at"`
R *moderationMuteR `boil:"-" json:"-" toml:"-" yaml:"-"`
L moderationMuteL `boil:"-" json:"-" toml:"-" yaml:"-"`
}
ModerationMute is an object representing the database table.
func FindModerationMute ¶
func FindModerationMute(ctx context.Context, exec boil.ContextExecutor, guildID string, userID string, selectCols ...string) (*ModerationMute, error)
FindModerationMute retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindModerationMuteG ¶
func FindModerationMuteG(ctx context.Context, guildID string, userID string, selectCols ...string) (*ModerationMute, error)
FindModerationMuteG retrieves a single record by ID.
func (*ModerationMute) Delete ¶
func (o *ModerationMute) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single ModerationMute record with an executor. Delete will match against the primary key column to find the record to delete.
func (*ModerationMute) DeleteG ¶
func (o *ModerationMute) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single ModerationMute record. DeleteG will match against the primary key column to find the record to delete.
func (*ModerationMute) Exists ¶
func (o *ModerationMute) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the ModerationMute row exists.
func (*ModerationMute) GetGuild ¶
func (o *ModerationMute) GetGuild() *ModerationConfig
func (*ModerationMute) Guild ¶
func (o *ModerationMute) Guild(mods ...qm.QueryMod) moderationConfigQuery
Guild pointed to by the foreign key.
func (*ModerationMute) Insert ¶
func (o *ModerationMute) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*ModerationMute) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*ModerationMute) Reload ¶
func (o *ModerationMute) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*ModerationMute) ReloadG ¶
func (o *ModerationMute) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*ModerationMute) SetGuild ¶
func (o *ModerationMute) SetGuild(ctx context.Context, exec boil.ContextExecutor, insert bool, related *ModerationConfig) error
SetGuild of the moderationMute to the related item. Sets o.R.Guild to related. Adds o to related.R.GuildModerationMutes.
func (*ModerationMute) SetGuildG ¶
func (o *ModerationMute) SetGuildG(ctx context.Context, insert bool, related *ModerationConfig) error
SetGuildG of the moderationMute to the related item. Sets o.R.Guild to related. Adds o to related.R.GuildModerationMutes. Uses the global database handle.
func (*ModerationMute) Update ¶
func (o *ModerationMute) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the ModerationMute. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*ModerationMute) UpdateG ¶
UpdateG a single ModerationMute record using the global executor. See Update for more documentation.
func (*ModerationMute) Upsert ¶
func (o *ModerationMute) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type ModerationMuteSlice ¶
type ModerationMuteSlice []*ModerationMute
ModerationMuteSlice is an alias for a slice of pointers to ModerationMute. This should almost always be used instead of []ModerationMute.
func (ModerationMuteSlice) DeleteAll ¶
func (o ModerationMuteSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (ModerationMuteSlice) DeleteAllG ¶
func (o ModerationMuteSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*ModerationMuteSlice) ReloadAll ¶
func (o *ModerationMuteSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*ModerationMuteSlice) ReloadAllG ¶
func (o *ModerationMuteSlice) ReloadAllG(ctx context.Context) error
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (ModerationMuteSlice) UpdateAll ¶
func (o ModerationMuteSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (ModerationMuteSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.
type UpsertOptionFunc ¶
type UpsertOptionFunc func(o *UpsertOptions)
func UpsertConflictTarget ¶
func UpsertConflictTarget(conflictTarget string) UpsertOptionFunc
func UpsertUpdateSet ¶
func UpsertUpdateSet(updateSet string) UpsertOptionFunc
type UpsertOptions ¶
type UpsertOptions struct {
// contains filtered or unexported fields
}