Documentation ¶
Index ¶
- Variables
- func CustomCommandExists(ctx context.Context, exec boil.ContextExecutor, guildID int64, localID int64) (bool, error)
- func CustomCommandExistsG(ctx context.Context, guildID int64, localID int64) (bool, error)
- func CustomCommandGroupExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func CustomCommandGroupExistsG(ctx context.Context, iD int64) (bool, error)
- func CustomCommandGroups(mods ...qm.QueryMod) customCommandGroupQuery
- func CustomCommands(mods ...qm.QueryMod) customCommandQuery
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func TemplatesUserDatabaseExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func TemplatesUserDatabaseExistsG(ctx context.Context, iD int64) (bool, error)
- func TemplatesUserDatabases(mods ...qm.QueryMod) templatesUserDatabaseQuery
- type CustomCommand
- func (o *CustomCommand) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *CustomCommand) DeleteG(ctx context.Context) (int64, error)
- func (o *CustomCommand) Group(mods ...qm.QueryMod) customCommandGroupQuery
- func (o *CustomCommand) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *CustomCommand) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *CustomCommand) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *CustomCommand) ReloadG(ctx context.Context) error
- func (o *CustomCommand) RemoveGroup(ctx context.Context, exec boil.ContextExecutor, related *CustomCommandGroup) error
- func (o *CustomCommand) RemoveGroupG(ctx context.Context, related *CustomCommandGroup) error
- func (o *CustomCommand) SetGroup(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *CustomCommand) SetGroupG(ctx context.Context, insert bool, related *CustomCommandGroup) error
- func (o *CustomCommand) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *CustomCommand) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *CustomCommand) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *CustomCommand) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type CustomCommandGroup
- func (o *CustomCommandGroup) AddGroupCustomCommands(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *CustomCommandGroup) AddGroupCustomCommandsG(ctx context.Context, insert bool, related ...*CustomCommand) error
- func (o *CustomCommandGroup) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *CustomCommandGroup) DeleteG(ctx context.Context) (int64, error)
- func (o *CustomCommandGroup) GroupCustomCommands(mods ...qm.QueryMod) customCommandQuery
- func (o *CustomCommandGroup) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *CustomCommandGroup) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *CustomCommandGroup) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *CustomCommandGroup) ReloadG(ctx context.Context) error
- func (o *CustomCommandGroup) RemoveGroupCustomCommands(ctx context.Context, exec boil.ContextExecutor, related ...*CustomCommand) error
- func (o *CustomCommandGroup) RemoveGroupCustomCommandsG(ctx context.Context, related ...*CustomCommand) error
- func (o *CustomCommandGroup) SetGroupCustomCommands(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *CustomCommandGroup) SetGroupCustomCommandsG(ctx context.Context, insert bool, related ...*CustomCommand) error
- func (o *CustomCommandGroup) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *CustomCommandGroup) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *CustomCommandGroup) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *CustomCommandGroup) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type CustomCommandGroupSlice
- func (o CustomCommandGroupSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o CustomCommandGroupSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *CustomCommandGroupSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *CustomCommandGroupSlice) ReloadAllG(ctx context.Context) error
- func (o CustomCommandGroupSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o CustomCommandGroupSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type CustomCommandSlice
- func (o CustomCommandSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o CustomCommandSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *CustomCommandSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *CustomCommandSlice) ReloadAllG(ctx context.Context) error
- func (o CustomCommandSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o CustomCommandSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type M
- type TemplatesUserDatabase
- func (o *TemplatesUserDatabase) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *TemplatesUserDatabase) DeleteG(ctx context.Context) (int64, error)
- func (o *TemplatesUserDatabase) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *TemplatesUserDatabase) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *TemplatesUserDatabase) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *TemplatesUserDatabase) ReloadG(ctx context.Context) error
- func (o *TemplatesUserDatabase) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *TemplatesUserDatabase) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *TemplatesUserDatabase) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *TemplatesUserDatabase) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type TemplatesUserDatabaseSlice
- func (o TemplatesUserDatabaseSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o TemplatesUserDatabaseSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *TemplatesUserDatabaseSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *TemplatesUserDatabaseSlice) ReloadAllG(ctx context.Context) error
- func (o TemplatesUserDatabaseSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o TemplatesUserDatabaseSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
Constants ¶
This section is empty.
Variables ¶
var CustomCommandColumns = struct { LocalID string GuildID string GroupID string TriggerType string TextTrigger string TextTriggerCaseSensitive string TimeTriggerInterval string TimeTriggerExcludingDays string TimeTriggerExcludingHours string LastRun string NextRun string Responses string Channels string ChannelsWhitelistMode string Roles string RolesWhitelistMode string ContextChannel string ReactionTriggerMode string Disabled string LastError string LastErrorTime string RunCount string ShowErrors string }{ LocalID: "local_id", GuildID: "guild_id", GroupID: "group_id", TriggerType: "trigger_type", TextTrigger: "text_trigger", TextTriggerCaseSensitive: "text_trigger_case_sensitive", TimeTriggerInterval: "time_trigger_interval", TimeTriggerExcludingDays: "time_trigger_excluding_days", TimeTriggerExcludingHours: "time_trigger_excluding_hours", LastRun: "last_run", NextRun: "next_run", Responses: "responses", Channels: "channels", ChannelsWhitelistMode: "channels_whitelist_mode", Roles: "roles", RolesWhitelistMode: "roles_whitelist_mode", ContextChannel: "context_channel", ReactionTriggerMode: "reaction_trigger_mode", Disabled: "disabled", LastError: "last_error", LastErrorTime: "last_error_time", RunCount: "run_count", ShowErrors: "show_errors", }
var CustomCommandGroupColumns = struct { ID string GuildID string Name string IgnoreRoles string IgnoreChannels string WhitelistRoles string WhitelistChannels string }{ ID: "id", GuildID: "guild_id", Name: "name", IgnoreRoles: "ignore_roles", IgnoreChannels: "ignore_channels", WhitelistRoles: "whitelist_roles", WhitelistChannels: "whitelist_channels", }
var CustomCommandGroupRels = struct { GroupCustomCommands string }{ GroupCustomCommands: "GroupCustomCommands", }
CustomCommandGroupRels is where relationship names are stored.
var CustomCommandGroupWhere = struct { ID whereHelperint64 GuildID whereHelperint64 Name whereHelperstring IgnoreRoles whereHelpertypes_Int64Array IgnoreChannels whereHelpertypes_Int64Array WhitelistRoles whereHelpertypes_Int64Array WhitelistChannels whereHelpertypes_Int64Array }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, GuildID: whereHelperint64{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, IgnoreRoles: whereHelpertypes_Int64Array{/* contains filtered or unexported fields */}, IgnoreChannels: whereHelpertypes_Int64Array{/* contains filtered or unexported fields */}, WhitelistRoles: whereHelpertypes_Int64Array{/* contains filtered or unexported fields */}, WhitelistChannels: whereHelpertypes_Int64Array{/* contains filtered or unexported fields */}, }
var CustomCommandRels = struct { Group string }{ Group: "Group", }
CustomCommandRels is where relationship names are stored.
var CustomCommandWhere = struct { LocalID whereHelperint64 GuildID whereHelperint64 GroupID whereHelpernull_Int64 TriggerType whereHelperint TextTrigger whereHelperstring TextTriggerCaseSensitive whereHelperbool TimeTriggerInterval whereHelperint TimeTriggerExcludingDays whereHelpertypes_Int64Array TimeTriggerExcludingHours whereHelpertypes_Int64Array LastRun whereHelpernull_Time NextRun whereHelpernull_Time Responses whereHelpertypes_StringArray Channels whereHelpertypes_Int64Array ChannelsWhitelistMode whereHelperbool Roles whereHelpertypes_Int64Array RolesWhitelistMode whereHelperbool ContextChannel whereHelperint64 ReactionTriggerMode whereHelperint16 Disabled whereHelperbool LastError whereHelperstring LastErrorTime whereHelpernull_Time RunCount whereHelperint ShowErrors whereHelperbool }{ LocalID: whereHelperint64{/* contains filtered or unexported fields */}, GuildID: whereHelperint64{/* contains filtered or unexported fields */}, GroupID: whereHelpernull_Int64{/* contains filtered or unexported fields */}, TriggerType: whereHelperint{/* contains filtered or unexported fields */}, TextTrigger: whereHelperstring{/* contains filtered or unexported fields */}, TextTriggerCaseSensitive: whereHelperbool{/* contains filtered or unexported fields */}, TimeTriggerInterval: whereHelperint{/* contains filtered or unexported fields */}, TimeTriggerExcludingDays: whereHelpertypes_Int64Array{/* contains filtered or unexported fields */}, TimeTriggerExcludingHours: whereHelpertypes_Int64Array{/* contains filtered or unexported fields */}, LastRun: whereHelpernull_Time{/* contains filtered or unexported fields */}, NextRun: whereHelpernull_Time{/* contains filtered or unexported fields */}, Responses: whereHelpertypes_StringArray{/* contains filtered or unexported fields */}, Channels: whereHelpertypes_Int64Array{/* contains filtered or unexported fields */}, ChannelsWhitelistMode: whereHelperbool{/* contains filtered or unexported fields */}, Roles: whereHelpertypes_Int64Array{/* contains filtered or unexported fields */}, RolesWhitelistMode: whereHelperbool{/* contains filtered or unexported fields */}, ContextChannel: whereHelperint64{/* contains filtered or unexported fields */}, ReactionTriggerMode: whereHelperint16{/* contains filtered or unexported fields */}, Disabled: whereHelperbool{/* contains filtered or unexported fields */}, LastError: whereHelperstring{/* contains filtered or unexported fields */}, LastErrorTime: whereHelpernull_Time{/* contains filtered or unexported fields */}, RunCount: whereHelperint{/* contains filtered or unexported fields */}, ShowErrors: whereHelperbool{/* contains filtered or unexported fields */}, }
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 TableNames = struct { CustomCommandGroups string CustomCommands string TemplatesUserDatabase string }{ CustomCommandGroups: "custom_command_groups", CustomCommands: "custom_commands", TemplatesUserDatabase: "templates_user_database", }
var TemplatesUserDatabaseColumns = struct { ID string CreatedAt string UpdatedAt string ExpiresAt string GuildID string UserID string Key string ValueNum string ValueRaw string }{ ID: "id", CreatedAt: "created_at", UpdatedAt: "updated_at", ExpiresAt: "expires_at", GuildID: "guild_id", UserID: "user_id", Key: "key", ValueNum: "value_num", ValueRaw: "value_raw", }
var TemplatesUserDatabaseRels = struct {
}{}
TemplatesUserDatabaseRels is where relationship names are stored.
var TemplatesUserDatabaseWhere = struct { ID whereHelperint64 CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time ExpiresAt whereHelpernull_Time GuildID whereHelperint64 UserID whereHelperint64 Key whereHelperstring ValueNum whereHelperfloat64 ValueRaw whereHelper__byte }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, ExpiresAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, GuildID: whereHelperint64{/* contains filtered or unexported fields */}, UserID: whereHelperint64{/* contains filtered or unexported fields */}, Key: whereHelperstring{/* contains filtered or unexported fields */}, ValueNum: whereHelperfloat64{/* contains filtered or unexported fields */}, ValueRaw: whereHelper__byte{/* contains filtered or unexported fields */}, }
Functions ¶
func CustomCommandExists ¶
func CustomCommandExists(ctx context.Context, exec boil.ContextExecutor, guildID int64, localID int64) (bool, error)
CustomCommandExists checks if the CustomCommand row exists.
func CustomCommandExistsG ¶
CustomCommandExistsG checks if the CustomCommand row exists.
func CustomCommandGroupExists ¶
func CustomCommandGroupExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
CustomCommandGroupExists checks if the CustomCommandGroup row exists.
func CustomCommandGroupExistsG ¶
CustomCommandGroupExistsG checks if the CustomCommandGroup row exists.
func CustomCommandGroups ¶
CustomCommandGroups retrieves all the records using an executor.
func CustomCommands ¶
CustomCommands retrieves all the records using an executor.
func TemplatesUserDatabaseExists ¶ added in v1.17.0
func TemplatesUserDatabaseExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
TemplatesUserDatabaseExists checks if the TemplatesUserDatabase row exists.
func TemplatesUserDatabaseExistsG ¶ added in v1.17.0
TemplatesUserDatabaseExistsG checks if the TemplatesUserDatabase row exists.
func TemplatesUserDatabases ¶ added in v1.17.0
TemplatesUserDatabases retrieves all the records using an executor.
Types ¶
type CustomCommand ¶
type CustomCommand struct { LocalID int64 `boil:"local_id" json:"local_id" toml:"local_id" yaml:"local_id"` GuildID int64 `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"` GroupID null.Int64 `boil:"group_id" json:"group_id,omitempty" toml:"group_id" yaml:"group_id,omitempty"` TriggerType int `boil:"trigger_type" json:"trigger_type" toml:"trigger_type" yaml:"trigger_type"` TextTrigger string `boil:"text_trigger" json:"text_trigger" toml:"text_trigger" yaml:"text_trigger"` TextTriggerCaseSensitive bool `` /* 139-byte string literal not displayed */ TimeTriggerInterval int `boil:"time_trigger_interval" json:"time_trigger_interval" toml:"time_trigger_interval" yaml:"time_trigger_interval"` TimeTriggerExcludingDays types.Int64Array `` /* 139-byte string literal not displayed */ TimeTriggerExcludingHours types.Int64Array `` /* 143-byte string literal not displayed */ LastRun null.Time `boil:"last_run" json:"last_run,omitempty" toml:"last_run" yaml:"last_run,omitempty"` NextRun null.Time `boil:"next_run" json:"next_run,omitempty" toml:"next_run" yaml:"next_run,omitempty"` Responses types.StringArray `boil:"responses" json:"responses" toml:"responses" yaml:"responses"` Channels types.Int64Array `boil:"channels" json:"channels,omitempty" toml:"channels" yaml:"channels,omitempty"` ChannelsWhitelistMode bool `boil:"channels_whitelist_mode" json:"channels_whitelist_mode" toml:"channels_whitelist_mode" yaml:"channels_whitelist_mode"` Roles types.Int64Array `boil:"roles" json:"roles,omitempty" toml:"roles" yaml:"roles,omitempty"` RolesWhitelistMode bool `boil:"roles_whitelist_mode" json:"roles_whitelist_mode" toml:"roles_whitelist_mode" yaml:"roles_whitelist_mode"` ContextChannel int64 `boil:"context_channel" json:"context_channel" toml:"context_channel" yaml:"context_channel"` ReactionTriggerMode int16 `boil:"reaction_trigger_mode" json:"reaction_trigger_mode" toml:"reaction_trigger_mode" yaml:"reaction_trigger_mode"` Disabled bool `boil:"disabled" json:"disabled" toml:"disabled" yaml:"disabled"` LastError string `boil:"last_error" json:"last_error" toml:"last_error" yaml:"last_error"` LastErrorTime null.Time `boil:"last_error_time" json:"last_error_time,omitempty" toml:"last_error_time" yaml:"last_error_time,omitempty"` RunCount int `boil:"run_count" json:"run_count" toml:"run_count" yaml:"run_count"` ShowErrors bool `boil:"show_errors" json:"show_errors" toml:"show_errors" yaml:"show_errors"` R *customCommandR `boil:"-" json:"-" toml:"-" yaml:"-"` L customCommandL `boil:"-" json:"-" toml:"-" yaml:"-"` }
CustomCommand is an object representing the database table.
func FindCustomCommand ¶
func FindCustomCommand(ctx context.Context, exec boil.ContextExecutor, guildID int64, localID int64, selectCols ...string) (*CustomCommand, error)
FindCustomCommand retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindCustomCommandG ¶
func FindCustomCommandG(ctx context.Context, guildID int64, localID int64, selectCols ...string) (*CustomCommand, error)
FindCustomCommandG retrieves a single record by ID.
func (*CustomCommand) Delete ¶
func (o *CustomCommand) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single CustomCommand record with an executor. Delete will match against the primary key column to find the record to delete.
func (*CustomCommand) DeleteG ¶
func (o *CustomCommand) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single CustomCommand record. DeleteG will match against the primary key column to find the record to delete.
func (*CustomCommand) Group ¶
func (o *CustomCommand) Group(mods ...qm.QueryMod) customCommandGroupQuery
Group pointed to by the foreign key.
func (*CustomCommand) Insert ¶
func (o *CustomCommand) 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 (*CustomCommand) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*CustomCommand) Reload ¶
func (o *CustomCommand) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*CustomCommand) ReloadG ¶
func (o *CustomCommand) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*CustomCommand) RemoveGroup ¶
func (o *CustomCommand) RemoveGroup(ctx context.Context, exec boil.ContextExecutor, related *CustomCommandGroup) error
RemoveGroup relationship. Sets o.R.Group to nil. Removes o from all passed in related items' relationships struct (Optional).
func (*CustomCommand) RemoveGroupG ¶
func (o *CustomCommand) RemoveGroupG(ctx context.Context, related *CustomCommandGroup) error
RemoveGroupG relationship. Sets o.R.Group to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle.
func (*CustomCommand) SetGroup ¶
func (o *CustomCommand) SetGroup(ctx context.Context, exec boil.ContextExecutor, insert bool, related *CustomCommandGroup) error
SetGroup of the customCommand to the related item. Sets o.R.Group to related. Adds o to related.R.GroupCustomCommands.
func (*CustomCommand) SetGroupG ¶
func (o *CustomCommand) SetGroupG(ctx context.Context, insert bool, related *CustomCommandGroup) error
SetGroupG of the customCommand to the related item. Sets o.R.Group to related. Adds o to related.R.GroupCustomCommands. Uses the global database handle.
func (*CustomCommand) Update ¶
func (o *CustomCommand) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the CustomCommand. 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 (*CustomCommand) UpdateG ¶
UpdateG a single CustomCommand record using the global executor. See Update for more documentation.
func (*CustomCommand) Upsert ¶
func (o *CustomCommand) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) 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 CustomCommandGroup ¶
type CustomCommandGroup struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` GuildID int64 `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` IgnoreRoles types.Int64Array `boil:"ignore_roles" json:"ignore_roles,omitempty" toml:"ignore_roles" yaml:"ignore_roles,omitempty"` IgnoreChannels types.Int64Array `boil:"ignore_channels" json:"ignore_channels,omitempty" toml:"ignore_channels" yaml:"ignore_channels,omitempty"` WhitelistRoles types.Int64Array `boil:"whitelist_roles" json:"whitelist_roles,omitempty" toml:"whitelist_roles" yaml:"whitelist_roles,omitempty"` WhitelistChannels types.Int64Array `boil:"whitelist_channels" json:"whitelist_channels,omitempty" toml:"whitelist_channels" yaml:"whitelist_channels,omitempty"` R *customCommandGroupR `boil:"-" json:"-" toml:"-" yaml:"-"` L customCommandGroupL `boil:"-" json:"-" toml:"-" yaml:"-"` }
CustomCommandGroup is an object representing the database table.
func FindCustomCommandGroup ¶
func FindCustomCommandGroup(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*CustomCommandGroup, error)
FindCustomCommandGroup retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindCustomCommandGroupG ¶
func FindCustomCommandGroupG(ctx context.Context, iD int64, selectCols ...string) (*CustomCommandGroup, error)
FindCustomCommandGroupG retrieves a single record by ID.
func (*CustomCommandGroup) AddGroupCustomCommands ¶
func (o *CustomCommandGroup) AddGroupCustomCommands(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*CustomCommand) error
AddGroupCustomCommands adds the given related objects to the existing relationships of the custom_command_group, optionally inserting them as new records. Appends related to o.R.GroupCustomCommands. Sets related.R.Group appropriately.
func (*CustomCommandGroup) AddGroupCustomCommandsG ¶
func (o *CustomCommandGroup) AddGroupCustomCommandsG(ctx context.Context, insert bool, related ...*CustomCommand) error
AddGroupCustomCommandsG adds the given related objects to the existing relationships of the custom_command_group, optionally inserting them as new records. Appends related to o.R.GroupCustomCommands. Sets related.R.Group appropriately. Uses the global database handle.
func (*CustomCommandGroup) Delete ¶
func (o *CustomCommandGroup) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single CustomCommandGroup record with an executor. Delete will match against the primary key column to find the record to delete.
func (*CustomCommandGroup) DeleteG ¶
func (o *CustomCommandGroup) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single CustomCommandGroup record. DeleteG will match against the primary key column to find the record to delete.
func (*CustomCommandGroup) GroupCustomCommands ¶
func (o *CustomCommandGroup) GroupCustomCommands(mods ...qm.QueryMod) customCommandQuery
GroupCustomCommands retrieves all the custom_command's CustomCommands with an executor via group_id column.
func (*CustomCommandGroup) Insert ¶
func (o *CustomCommandGroup) 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 (*CustomCommandGroup) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*CustomCommandGroup) Reload ¶
func (o *CustomCommandGroup) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*CustomCommandGroup) ReloadG ¶
func (o *CustomCommandGroup) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*CustomCommandGroup) RemoveGroupCustomCommands ¶
func (o *CustomCommandGroup) RemoveGroupCustomCommands(ctx context.Context, exec boil.ContextExecutor, related ...*CustomCommand) error
RemoveGroupCustomCommands relationships from objects passed in. Removes related items from R.GroupCustomCommands (uses pointer comparison, removal does not keep order) Sets related.R.Group.
func (*CustomCommandGroup) RemoveGroupCustomCommandsG ¶
func (o *CustomCommandGroup) RemoveGroupCustomCommandsG(ctx context.Context, related ...*CustomCommand) error
RemoveGroupCustomCommandsG relationships from objects passed in. Removes related items from R.GroupCustomCommands (uses pointer comparison, removal does not keep order) Sets related.R.Group. Uses the global database handle.
func (*CustomCommandGroup) SetGroupCustomCommands ¶
func (o *CustomCommandGroup) SetGroupCustomCommands(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*CustomCommand) error
SetGroupCustomCommands removes all previously related items of the custom_command_group replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Group's GroupCustomCommands accordingly. Replaces o.R.GroupCustomCommands with related. Sets related.R.Group's GroupCustomCommands accordingly.
func (*CustomCommandGroup) SetGroupCustomCommandsG ¶
func (o *CustomCommandGroup) SetGroupCustomCommandsG(ctx context.Context, insert bool, related ...*CustomCommand) error
SetGroupCustomCommandsG removes all previously related items of the custom_command_group replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Group's GroupCustomCommands accordingly. Replaces o.R.GroupCustomCommands with related. Sets related.R.Group's GroupCustomCommands accordingly. Uses the global database handle.
func (*CustomCommandGroup) Update ¶
func (o *CustomCommandGroup) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the CustomCommandGroup. 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 (*CustomCommandGroup) UpdateG ¶
UpdateG a single CustomCommandGroup record using the global executor. See Update for more documentation.
func (*CustomCommandGroup) Upsert ¶
func (o *CustomCommandGroup) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) 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 CustomCommandGroupSlice ¶
type CustomCommandGroupSlice []*CustomCommandGroup
CustomCommandGroupSlice is an alias for a slice of pointers to CustomCommandGroup. This should generally be used opposed to []CustomCommandGroup.
func (CustomCommandGroupSlice) DeleteAll ¶
func (o CustomCommandGroupSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (CustomCommandGroupSlice) DeleteAllG ¶
func (o CustomCommandGroupSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*CustomCommandGroupSlice) ReloadAll ¶
func (o *CustomCommandGroupSlice) 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 (*CustomCommandGroupSlice) ReloadAllG ¶
func (o *CustomCommandGroupSlice) 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 (CustomCommandGroupSlice) UpdateAll ¶
func (o CustomCommandGroupSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (CustomCommandGroupSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.
type CustomCommandSlice ¶
type CustomCommandSlice []*CustomCommand
CustomCommandSlice is an alias for a slice of pointers to CustomCommand. This should generally be used opposed to []CustomCommand.
func (CustomCommandSlice) DeleteAll ¶
func (o CustomCommandSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (CustomCommandSlice) DeleteAllG ¶
func (o CustomCommandSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*CustomCommandSlice) ReloadAll ¶
func (o *CustomCommandSlice) 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 (*CustomCommandSlice) ReloadAllG ¶
func (o *CustomCommandSlice) 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 (CustomCommandSlice) UpdateAll ¶
func (o CustomCommandSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (CustomCommandSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.
type M ¶
type M map[string]interface{}
M type is for providing columns and column values to UpdateAll.
type TemplatesUserDatabase ¶ added in v1.17.0
type TemplatesUserDatabase struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"` ExpiresAt null.Time `boil:"expires_at" json:"expires_at,omitempty" toml:"expires_at" yaml:"expires_at,omitempty"` GuildID int64 `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"` UserID int64 `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` Key string `boil:"key" json:"key" toml:"key" yaml:"key"` ValueNum float64 `boil:"value_num" json:"value_num" toml:"value_num" yaml:"value_num"` ValueRaw []byte `boil:"value_raw" json:"value_raw" toml:"value_raw" yaml:"value_raw"` R *templatesUserDatabaseR `boil:"-" json:"-" toml:"-" yaml:"-"` L templatesUserDatabaseL `boil:"-" json:"-" toml:"-" yaml:"-"` }
TemplatesUserDatabase is an object representing the database table.
func FindTemplatesUserDatabase ¶ added in v1.17.0
func FindTemplatesUserDatabase(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*TemplatesUserDatabase, error)
FindTemplatesUserDatabase retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindTemplatesUserDatabaseG ¶ added in v1.17.0
func FindTemplatesUserDatabaseG(ctx context.Context, iD int64, selectCols ...string) (*TemplatesUserDatabase, error)
FindTemplatesUserDatabaseG retrieves a single record by ID.
func (*TemplatesUserDatabase) Delete ¶ added in v1.17.0
func (o *TemplatesUserDatabase) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single TemplatesUserDatabase record with an executor. Delete will match against the primary key column to find the record to delete.
func (*TemplatesUserDatabase) DeleteG ¶ added in v1.17.0
func (o *TemplatesUserDatabase) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single TemplatesUserDatabase record. DeleteG will match against the primary key column to find the record to delete.
func (*TemplatesUserDatabase) Insert ¶ added in v1.17.0
func (o *TemplatesUserDatabase) 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 (*TemplatesUserDatabase) InsertG ¶ added in v1.17.0
InsertG a single record. See Insert for whitelist behavior description.
func (*TemplatesUserDatabase) Reload ¶ added in v1.17.0
func (o *TemplatesUserDatabase) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*TemplatesUserDatabase) ReloadG ¶ added in v1.17.0
func (o *TemplatesUserDatabase) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*TemplatesUserDatabase) Update ¶ added in v1.17.0
func (o *TemplatesUserDatabase) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the TemplatesUserDatabase. 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 (*TemplatesUserDatabase) UpdateG ¶ added in v1.17.0
UpdateG a single TemplatesUserDatabase record using the global executor. See Update for more documentation.
func (*TemplatesUserDatabase) Upsert ¶ added in v1.17.0
func (o *TemplatesUserDatabase) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) 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 TemplatesUserDatabaseSlice ¶ added in v1.17.0
type TemplatesUserDatabaseSlice []*TemplatesUserDatabase
TemplatesUserDatabaseSlice is an alias for a slice of pointers to TemplatesUserDatabase. This should generally be used opposed to []TemplatesUserDatabase.
func (TemplatesUserDatabaseSlice) DeleteAll ¶ added in v1.17.0
func (o TemplatesUserDatabaseSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (TemplatesUserDatabaseSlice) DeleteAllG ¶ added in v1.17.0
func (o TemplatesUserDatabaseSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*TemplatesUserDatabaseSlice) ReloadAll ¶ added in v1.17.0
func (o *TemplatesUserDatabaseSlice) 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 (*TemplatesUserDatabaseSlice) ReloadAllG ¶ added in v1.17.0
func (o *TemplatesUserDatabaseSlice) 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 (TemplatesUserDatabaseSlice) UpdateAll ¶ added in v1.17.0
func (o TemplatesUserDatabaseSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (TemplatesUserDatabaseSlice) UpdateAllG ¶ added in v1.17.0
UpdateAllG updates all rows with the specified column values.