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) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, 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) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, 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
- type UpsertOptionFunc
- type UpsertOptions
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 CommandsChannelsOverrideTableColumns = 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: "commands_channels_overrides.id", GuildID: "commands_channels_overrides.guild_id", Channels: "commands_channels_overrides.channels", ChannelCategories: "commands_channels_overrides.channel_categories", Global: "commands_channels_overrides.global", CommandsEnabled: "commands_channels_overrides.commands_enabled", AutodeleteResponse: "commands_channels_overrides.autodelete_response", AutodeleteTrigger: "commands_channels_overrides.autodelete_trigger", AutodeleteResponseDelay: "commands_channels_overrides.autodelete_response_delay", AutodeleteTriggerDelay: "commands_channels_overrides.autodelete_trigger_delay", RequireRoles: "commands_channels_overrides.require_roles", IgnoreRoles: "commands_channels_overrides.ignore_roles", }
var CommandsChannelsOverrideWhere = struct { ID whereHelperint64 GuildID whereHelperint64 Channels whereHelpertypes_Int64Array ChannelCategories whereHelpertypes_Int64Array Global whereHelperbool CommandsEnabled whereHelperbool AutodeleteResponse whereHelperbool AutodeleteTrigger whereHelperbool AutodeleteResponseDelay whereHelperint AutodeleteTriggerDelay whereHelperint RequireRoles whereHelpertypes_Int64Array IgnoreRoles whereHelpertypes_Int64Array }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, GuildID: whereHelperint64{/* contains filtered or unexported fields */}, Channels: whereHelpertypes_Int64Array{/* contains filtered or unexported fields */}, ChannelCategories: whereHelpertypes_Int64Array{/* contains filtered or unexported fields */}, Global: whereHelperbool{/* contains filtered or unexported fields */}, CommandsEnabled: whereHelperbool{/* contains filtered or unexported fields */}, AutodeleteResponse: whereHelperbool{/* contains filtered or unexported fields */}, AutodeleteTrigger: whereHelperbool{/* contains filtered or unexported fields */}, AutodeleteResponseDelay: whereHelperint{/* contains filtered or unexported fields */}, AutodeleteTriggerDelay: whereHelperint{/* contains filtered or unexported fields */}, RequireRoles: whereHelpertypes_Int64Array{/* contains filtered or unexported fields */}, IgnoreRoles: whereHelpertypes_Int64Array{/* contains filtered or unexported fields */}, }
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 CommandsCommandOverrideTableColumns = struct { ID string GuildID string CommandsChannelsOverridesID string Commands string CommandsEnabled string AutodeleteResponse string AutodeleteTrigger string AutodeleteResponseDelay string AutodeleteTriggerDelay string RequireRoles string IgnoreRoles string }{ ID: "commands_command_overrides.id", GuildID: "commands_command_overrides.guild_id", CommandsChannelsOverridesID: "commands_command_overrides.commands_channels_overrides_id", Commands: "commands_command_overrides.commands", CommandsEnabled: "commands_command_overrides.commands_enabled", AutodeleteResponse: "commands_command_overrides.autodelete_response", AutodeleteTrigger: "commands_command_overrides.autodelete_trigger", AutodeleteResponseDelay: "commands_command_overrides.autodelete_response_delay", AutodeleteTriggerDelay: "commands_command_overrides.autodelete_trigger_delay", RequireRoles: "commands_command_overrides.require_roles", IgnoreRoles: "commands_command_overrides.ignore_roles", }
var CommandsCommandOverrideWhere = struct { ID whereHelperint64 GuildID whereHelperint64 CommandsChannelsOverridesID whereHelperint64 Commands whereHelpertypes_StringArray CommandsEnabled whereHelperbool AutodeleteResponse whereHelperbool AutodeleteTrigger whereHelperbool AutodeleteResponseDelay whereHelperint AutodeleteTriggerDelay whereHelperint RequireRoles whereHelpertypes_Int64Array IgnoreRoles whereHelpertypes_Int64Array }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, GuildID: whereHelperint64{/* contains filtered or unexported fields */}, CommandsChannelsOverridesID: whereHelperint64{/* contains filtered or unexported fields */}, Commands: whereHelpertypes_StringArray{/* contains filtered or unexported fields */}, CommandsEnabled: whereHelperbool{/* contains filtered or unexported fields */}, AutodeleteResponse: whereHelperbool{/* contains filtered or unexported fields */}, AutodeleteTrigger: whereHelperbool{/* contains filtered or unexported fields */}, AutodeleteResponseDelay: whereHelperint{/* contains filtered or unexported fields */}, AutodeleteTriggerDelay: whereHelperint{/* contains filtered or unexported fields */}, RequireRoles: whereHelpertypes_Int64Array{/* contains filtered or unexported fields */}, IgnoreRoles: whereHelpertypes_Int64Array{/* 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 { 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) Exists ¶ added in v2.36.0
func (o *CommandsChannelsOverride) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the CommandsChannelsOverride row exists.
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, 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 (*CommandsChannelsOverride) UpsertG ¶
func (o *CommandsChannelsOverride) 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 CommandsChannelsOverrideSlice ¶
type CommandsChannelsOverrideSlice []*CommandsChannelsOverride
CommandsChannelsOverrideSlice is an alias for a slice of pointers to CommandsChannelsOverride. This should almost always be used instead of []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) Exists ¶ added in v2.36.0
func (o *CommandsCommandOverride) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the CommandsCommandOverride row exists.
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, 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 CommandsCommandOverrideSlice ¶
type CommandsCommandOverrideSlice []*CommandsCommandOverride
CommandsCommandOverrideSlice is an alias for a slice of pointers to CommandsCommandOverride. This should almost always be used instead of []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.
type M ¶
type M map[string]interface{}
M type is for providing columns and column values to UpdateAll.
type UpsertOptionFunc ¶ added in v2.36.0
type UpsertOptionFunc func(o *UpsertOptions)
func UpsertConflictTarget ¶ added in v2.36.0
func UpsertConflictTarget(conflictTarget string) UpsertOptionFunc
func UpsertUpdateSet ¶ added in v2.36.0
func UpsertUpdateSet(updateSet string) UpsertOptionFunc
type UpsertOptions ¶ added in v2.36.0
type UpsertOptions struct {
// contains filtered or unexported fields
}