Documentation ¶
Index ¶
- Variables
- func CommandsChannelsOverrideExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func CommandsChannelsOverrideExistsG(ctx context.Context, iD int64) (bool, error)
- func CommandsChannelsOverrides(mods ...qm.QueryMod) commandsChannelsOverrideQuery
- func CommandsCommandOverrideExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func CommandsCommandOverrideExistsG(ctx context.Context, iD int64) (bool, error)
- func CommandsCommandOverrides(mods ...qm.QueryMod) commandsCommandOverrideQuery
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- type CommandsChannelsOverride
- func (o *CommandsChannelsOverride) AddCommandsCommandOverrides(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *CommandsChannelsOverride) AddCommandsCommandOverridesG(ctx context.Context, insert bool, related ...*CommandsCommandOverride) error
- func (o *CommandsChannelsOverride) CommandsCommandOverrides(mods ...qm.QueryMod) commandsCommandOverrideQuery
- func (o *CommandsChannelsOverride) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *CommandsChannelsOverride) DeleteG(ctx context.Context) (int64, error)
- func (o *CommandsChannelsOverride) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *CommandsChannelsOverride) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *CommandsChannelsOverride) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *CommandsChannelsOverride) ReloadG(ctx context.Context) error
- func (o *CommandsChannelsOverride) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *CommandsChannelsOverride) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *CommandsChannelsOverride) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *CommandsChannelsOverride) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type CommandsChannelsOverrideSlice
- func (o CommandsChannelsOverrideSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o CommandsChannelsOverrideSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *CommandsChannelsOverrideSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *CommandsChannelsOverrideSlice) ReloadAllG(ctx context.Context) error
- func (o CommandsChannelsOverrideSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o CommandsChannelsOverrideSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type CommandsCommandOverride
- func (o *CommandsCommandOverride) CommandsChannelsOverride(mods ...qm.QueryMod) commandsChannelsOverrideQuery
- func (o *CommandsCommandOverride) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *CommandsCommandOverride) DeleteG(ctx context.Context) (int64, error)
- func (o *CommandsCommandOverride) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *CommandsCommandOverride) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *CommandsCommandOverride) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *CommandsCommandOverride) ReloadG(ctx context.Context) error
- func (o *CommandsCommandOverride) SetCommandsChannelsOverride(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *CommandsCommandOverride) SetCommandsChannelsOverrideG(ctx context.Context, insert bool, related *CommandsChannelsOverride) error
- func (o *CommandsCommandOverride) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *CommandsCommandOverride) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *CommandsCommandOverride) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *CommandsCommandOverride) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type CommandsCommandOverrideSlice
- func (o CommandsCommandOverrideSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o CommandsCommandOverrideSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *CommandsCommandOverrideSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *CommandsCommandOverrideSlice) ReloadAllG(ctx context.Context) error
- func (o CommandsCommandOverrideSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o CommandsCommandOverrideSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type M
Constants ¶
This section is empty.
Variables ¶
var CommandsChannelsOverrideColumns = struct { ID string GuildID string Channels string ChannelCategories string Global string CommandsEnabled string AutodeleteResponse string AutodeleteTrigger string AutodeleteResponseDelay string AutodeleteTriggerDelay string RequireRoles string IgnoreRoles string }{ ID: "id", GuildID: "guild_id", Channels: "channels", ChannelCategories: "channel_categories", Global: "global", CommandsEnabled: "commands_enabled", AutodeleteResponse: "autodelete_response", AutodeleteTrigger: "autodelete_trigger", AutodeleteResponseDelay: "autodelete_response_delay", AutodeleteTriggerDelay: "autodelete_trigger_delay", RequireRoles: "require_roles", IgnoreRoles: "ignore_roles", }
var CommandsChannelsOverrideRels = struct { CommandsCommandOverrides string }{ CommandsCommandOverrides: "CommandsCommandOverrides", }
CommandsChannelsOverrideRels is where relationship names are stored.
var CommandsCommandOverrideColumns = struct { ID string GuildID string CommandsChannelsOverridesID string Commands string CommandsEnabled string AutodeleteResponse string AutodeleteTrigger string AutodeleteResponseDelay string AutodeleteTriggerDelay string RequireRoles string IgnoreRoles string }{ ID: "id", GuildID: "guild_id", CommandsChannelsOverridesID: "commands_channels_overrides_id", Commands: "commands", CommandsEnabled: "commands_enabled", AutodeleteResponse: "autodelete_response", AutodeleteTrigger: "autodelete_trigger", AutodeleteResponseDelay: "autodelete_response_delay", AutodeleteTriggerDelay: "autodelete_trigger_delay", RequireRoles: "require_roles", IgnoreRoles: "ignore_roles", }
var CommandsCommandOverrideRels = struct { CommandsChannelsOverride string }{ CommandsChannelsOverride: "CommandsChannelsOverride", }
CommandsCommandOverrideRels is where relationship names are stored.
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 { CommandsChannelsOverrides string CommandsCommandOverrides string }{ CommandsChannelsOverrides: "commands_channels_overrides", CommandsCommandOverrides: "commands_command_overrides", }
Functions ¶
func CommandsChannelsOverrideExists ¶
func CommandsChannelsOverrideExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
CommandsChannelsOverrideExists checks if the CommandsChannelsOverride row exists.
func CommandsChannelsOverrideExistsG ¶
CommandsChannelsOverrideExistsG checks if the CommandsChannelsOverride row exists.
func CommandsChannelsOverrides ¶
CommandsChannelsOverrides retrieves all the records using an executor.
func CommandsCommandOverrideExists ¶
func CommandsCommandOverrideExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
CommandsCommandOverrideExists checks if the CommandsCommandOverride row exists.
func CommandsCommandOverrideExistsG ¶
CommandsCommandOverrideExistsG checks if the CommandsCommandOverride row exists.
func CommandsCommandOverrides ¶
CommandsCommandOverrides retrieves all the records using an executor.
Types ¶
type CommandsChannelsOverride ¶
type CommandsChannelsOverride 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"` Channels types.Int64Array `boil:"channels" json:"channels,omitempty" toml:"channels" yaml:"channels,omitempty"` ChannelCategories types.Int64Array `boil:"channel_categories" json:"channel_categories,omitempty" toml:"channel_categories" yaml:"channel_categories,omitempty"` Global bool `boil:"global" json:"global" toml:"global" yaml:"global"` CommandsEnabled bool `boil:"commands_enabled" json:"commands_enabled" toml:"commands_enabled" yaml:"commands_enabled"` AutodeleteResponse bool `boil:"autodelete_response" json:"autodelete_response" toml:"autodelete_response" yaml:"autodelete_response"` AutodeleteTrigger bool `boil:"autodelete_trigger" json:"autodelete_trigger" toml:"autodelete_trigger" yaml:"autodelete_trigger"` AutodeleteResponseDelay int `` /* 131-byte string literal not displayed */ AutodeleteTriggerDelay int `` /* 127-byte string literal not displayed */ RequireRoles types.Int64Array `boil:"require_roles" json:"require_roles" toml:"require_roles" yaml:"require_roles"` IgnoreRoles types.Int64Array `boil:"ignore_roles" json:"ignore_roles" toml:"ignore_roles" yaml:"ignore_roles"` R *commandsChannelsOverrideR `boil:"-" json:"-" toml:"-" yaml:"-"` L commandsChannelsOverrideL `boil:"-" json:"-" toml:"-" yaml:"-"` }
CommandsChannelsOverride is an object representing the database table.
func FindCommandsChannelsOverride ¶
func FindCommandsChannelsOverride(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*CommandsChannelsOverride, error)
FindCommandsChannelsOverride retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindCommandsChannelsOverrideG ¶
func FindCommandsChannelsOverrideG(ctx context.Context, iD int64, selectCols ...string) (*CommandsChannelsOverride, error)
FindCommandsChannelsOverrideG retrieves a single record by ID.
func (*CommandsChannelsOverride) AddCommandsCommandOverrides ¶
func (o *CommandsChannelsOverride) AddCommandsCommandOverrides(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*CommandsCommandOverride) error
AddCommandsCommandOverrides adds the given related objects to the existing relationships of the commands_channels_override, optionally inserting them as new records. Appends related to o.R.CommandsCommandOverrides. Sets related.R.CommandsChannelsOverride appropriately.
func (*CommandsChannelsOverride) AddCommandsCommandOverridesG ¶
func (o *CommandsChannelsOverride) AddCommandsCommandOverridesG(ctx context.Context, insert bool, related ...*CommandsCommandOverride) error
AddCommandsCommandOverridesG adds the given related objects to the existing relationships of the commands_channels_override, optionally inserting them as new records. Appends related to o.R.CommandsCommandOverrides. Sets related.R.CommandsChannelsOverride appropriately. Uses the global database handle.
func (*CommandsChannelsOverride) CommandsCommandOverrides ¶
func (o *CommandsChannelsOverride) CommandsCommandOverrides(mods ...qm.QueryMod) commandsCommandOverrideQuery
CommandsCommandOverrides retrieves all the commands_command_override's CommandsCommandOverrides with an executor.
func (*CommandsChannelsOverride) Delete ¶
func (o *CommandsChannelsOverride) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single CommandsChannelsOverride record with an executor. Delete will match against the primary key column to find the record to delete.
func (*CommandsChannelsOverride) DeleteG ¶
func (o *CommandsChannelsOverride) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single CommandsChannelsOverride record. DeleteG will match against the primary key column to find the record to delete.
func (*CommandsChannelsOverride) Insert ¶
func (o *CommandsChannelsOverride) 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 (*CommandsChannelsOverride) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*CommandsChannelsOverride) Reload ¶
func (o *CommandsChannelsOverride) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*CommandsChannelsOverride) ReloadG ¶
func (o *CommandsChannelsOverride) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*CommandsChannelsOverride) Update ¶
func (o *CommandsChannelsOverride) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the CommandsChannelsOverride. 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 (*CommandsChannelsOverride) UpdateG ¶
func (o *CommandsChannelsOverride) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
UpdateG a single CommandsChannelsOverride record using the global executor. See Update for more documentation.
func (*CommandsChannelsOverride) Upsert ¶
func (o *CommandsChannelsOverride) 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 CommandsChannelsOverrideSlice ¶
type CommandsChannelsOverrideSlice []*CommandsChannelsOverride
CommandsChannelsOverrideSlice is an alias for a slice of pointers to CommandsChannelsOverride. This should generally be used opposed to []CommandsChannelsOverride.
func (CommandsChannelsOverrideSlice) DeleteAll ¶
func (o CommandsChannelsOverrideSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (CommandsChannelsOverrideSlice) DeleteAllG ¶
func (o CommandsChannelsOverrideSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*CommandsChannelsOverrideSlice) ReloadAll ¶
func (o *CommandsChannelsOverrideSlice) 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 (*CommandsChannelsOverrideSlice) ReloadAllG ¶
func (o *CommandsChannelsOverrideSlice) 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 (CommandsChannelsOverrideSlice) UpdateAll ¶
func (o CommandsChannelsOverrideSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (CommandsChannelsOverrideSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.
type CommandsCommandOverride ¶
type CommandsCommandOverride 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"` CommandsChannelsOverridesID int64 `` /* 151-byte string literal not displayed */ Commands types.StringArray `boil:"commands" json:"commands" toml:"commands" yaml:"commands"` CommandsEnabled bool `boil:"commands_enabled" json:"commands_enabled" toml:"commands_enabled" yaml:"commands_enabled"` AutodeleteResponse bool `boil:"autodelete_response" json:"autodelete_response" toml:"autodelete_response" yaml:"autodelete_response"` AutodeleteTrigger bool `boil:"autodelete_trigger" json:"autodelete_trigger" toml:"autodelete_trigger" yaml:"autodelete_trigger"` AutodeleteResponseDelay int `` /* 131-byte string literal not displayed */ AutodeleteTriggerDelay int `` /* 127-byte string literal not displayed */ RequireRoles types.Int64Array `boil:"require_roles" json:"require_roles" toml:"require_roles" yaml:"require_roles"` IgnoreRoles types.Int64Array `boil:"ignore_roles" json:"ignore_roles" toml:"ignore_roles" yaml:"ignore_roles"` R *commandsCommandOverrideR `boil:"-" json:"-" toml:"-" yaml:"-"` L commandsCommandOverrideL `boil:"-" json:"-" toml:"-" yaml:"-"` }
CommandsCommandOverride is an object representing the database table.
func FindCommandsCommandOverride ¶
func FindCommandsCommandOverride(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*CommandsCommandOverride, error)
FindCommandsCommandOverride retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindCommandsCommandOverrideG ¶
func FindCommandsCommandOverrideG(ctx context.Context, iD int64, selectCols ...string) (*CommandsCommandOverride, error)
FindCommandsCommandOverrideG retrieves a single record by ID.
func (*CommandsCommandOverride) CommandsChannelsOverride ¶
func (o *CommandsCommandOverride) CommandsChannelsOverride(mods ...qm.QueryMod) commandsChannelsOverrideQuery
CommandsChannelsOverride pointed to by the foreign key.
func (*CommandsCommandOverride) Delete ¶
func (o *CommandsCommandOverride) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single CommandsCommandOverride record with an executor. Delete will match against the primary key column to find the record to delete.
func (*CommandsCommandOverride) DeleteG ¶
func (o *CommandsCommandOverride) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single CommandsCommandOverride record. DeleteG will match against the primary key column to find the record to delete.
func (*CommandsCommandOverride) Insert ¶
func (o *CommandsCommandOverride) 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 (*CommandsCommandOverride) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*CommandsCommandOverride) Reload ¶
func (o *CommandsCommandOverride) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*CommandsCommandOverride) ReloadG ¶
func (o *CommandsCommandOverride) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*CommandsCommandOverride) SetCommandsChannelsOverride ¶
func (o *CommandsCommandOverride) SetCommandsChannelsOverride(ctx context.Context, exec boil.ContextExecutor, insert bool, related *CommandsChannelsOverride) error
SetCommandsChannelsOverride of the commandsCommandOverride to the related item. Sets o.R.CommandsChannelsOverride to related. Adds o to related.R.CommandsCommandOverrides.
func (*CommandsCommandOverride) SetCommandsChannelsOverrideG ¶
func (o *CommandsCommandOverride) SetCommandsChannelsOverrideG(ctx context.Context, insert bool, related *CommandsChannelsOverride) error
SetCommandsChannelsOverrideG of the commandsCommandOverride to the related item. Sets o.R.CommandsChannelsOverride to related. Adds o to related.R.CommandsCommandOverrides. Uses the global database handle.
func (*CommandsCommandOverride) Update ¶
func (o *CommandsCommandOverride) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the CommandsCommandOverride. 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 (*CommandsCommandOverride) UpdateG ¶
UpdateG a single CommandsCommandOverride record using the global executor. See Update for more documentation.
func (*CommandsCommandOverride) Upsert ¶
func (o *CommandsCommandOverride) 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 CommandsCommandOverrideSlice ¶
type CommandsCommandOverrideSlice []*CommandsCommandOverride
CommandsCommandOverrideSlice is an alias for a slice of pointers to CommandsCommandOverride. This should generally be used opposed to []CommandsCommandOverride.
func (CommandsCommandOverrideSlice) DeleteAll ¶
func (o CommandsCommandOverrideSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (CommandsCommandOverrideSlice) DeleteAllG ¶
func (o CommandsCommandOverrideSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*CommandsCommandOverrideSlice) ReloadAll ¶
func (o *CommandsCommandOverrideSlice) 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 (*CommandsCommandOverrideSlice) ReloadAllG ¶
func (o *CommandsCommandOverrideSlice) 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 (CommandsCommandOverrideSlice) UpdateAll ¶
func (o CommandsCommandOverrideSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (CommandsCommandOverrideSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.