models

package
v1.4.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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",
}
View Source
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",
}
View Source
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.

View Source
var TableNames = struct {
	CommandsChannelsOverrides string
	CommandsCommandOverrides  string
}{
	CommandsChannelsOverrides: "commands_channels_overrides",
	CommandsCommandOverrides:  "commands_command_overrides",
}

Functions

func CommandsChannelsOverrideExists

func CommandsChannelsOverrideExists(exec boil.Executor, id int64) (bool, error)

CommandsChannelsOverrideExists checks if the CommandsChannelsOverride row exists.

func CommandsChannelsOverrideExistsG

func CommandsChannelsOverrideExistsG(id int64) (bool, error)

CommandsChannelsOverrideExistsG checks if the CommandsChannelsOverride row exists.

func CommandsChannelsOverrideExistsGP

func CommandsChannelsOverrideExistsGP(id int64) bool

CommandsChannelsOverrideExistsGP checks if the CommandsChannelsOverride row exists. Panics on error.

func CommandsChannelsOverrideExistsP

func CommandsChannelsOverrideExistsP(exec boil.Executor, id int64) bool

CommandsChannelsOverrideExistsP checks if the CommandsChannelsOverride row exists. Panics on error.

func CommandsChannelsOverrides

func CommandsChannelsOverrides(exec boil.Executor, mods ...qm.QueryMod) commandsChannelsOverrideQuery

CommandsChannelsOverrides retrieves all the records using an executor.

func CommandsChannelsOverridesG

func CommandsChannelsOverridesG(mods ...qm.QueryMod) commandsChannelsOverrideQuery

CommandsChannelsOverridesG retrieves all records.

func CommandsCommandOverrideExists

func CommandsCommandOverrideExists(exec boil.Executor, id int64) (bool, error)

CommandsCommandOverrideExists checks if the CommandsCommandOverride row exists.

func CommandsCommandOverrideExistsG

func CommandsCommandOverrideExistsG(id int64) (bool, error)

CommandsCommandOverrideExistsG checks if the CommandsCommandOverride row exists.

func CommandsCommandOverrideExistsGP

func CommandsCommandOverrideExistsGP(id int64) bool

CommandsCommandOverrideExistsGP checks if the CommandsCommandOverride row exists. Panics on error.

func CommandsCommandOverrideExistsP

func CommandsCommandOverrideExistsP(exec boil.Executor, id int64) bool

CommandsCommandOverrideExistsP checks if the CommandsCommandOverride row exists. Panics on error.

func CommandsCommandOverrides

func CommandsCommandOverrides(exec boil.Executor, mods ...qm.QueryMod) commandsCommandOverrideQuery

CommandsCommandOverrides retrieves all the records using an executor.

func CommandsCommandOverridesG

func CommandsCommandOverridesG(mods ...qm.QueryMod) commandsCommandOverrideQuery

CommandsCommandOverridesG retrieves all records.

func NewQuery

func NewQuery(exec boil.Executor, mods ...qm.QueryMod) *queries.Query

NewQuery initializes a new Query using the passed in QueryMods

func NewQueryG

func NewQueryG(mods ...qm.QueryMod) *queries.Query

NewQueryG initializes a new Query using the passed in QueryMods

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(exec boil.Executor, 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(id int64, selectCols ...string) (*CommandsChannelsOverride, error)

FindCommandsChannelsOverrideG retrieves a single record by ID.

func FindCommandsChannelsOverrideGP

func FindCommandsChannelsOverrideGP(id int64, selectCols ...string) *CommandsChannelsOverride

FindCommandsChannelsOverrideGP retrieves a single record by ID, and panics on error.

func FindCommandsChannelsOverrideP

func FindCommandsChannelsOverrideP(exec boil.Executor, id int64, selectCols ...string) *CommandsChannelsOverride

FindCommandsChannelsOverrideP retrieves a single record by ID with an executor, and panics on error.

func (*CommandsChannelsOverride) AddCommandsCommandOverrides

func (o *CommandsChannelsOverride) AddCommandsCommandOverrides(exec boil.Executor, 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(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) AddCommandsCommandOverridesGP

func (o *CommandsChannelsOverride) AddCommandsCommandOverridesGP(insert bool, related ...*CommandsCommandOverride)

AddCommandsCommandOverridesGP 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 and panics on error.

func (*CommandsChannelsOverride) AddCommandsCommandOverridesP

func (o *CommandsChannelsOverride) AddCommandsCommandOverridesP(exec boil.Executor, insert bool, related ...*CommandsCommandOverride)

AddCommandsCommandOverridesP 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. Panics on error.

func (*CommandsChannelsOverride) CommandsCommandOverrides

func (o *CommandsChannelsOverride) CommandsCommandOverrides(exec boil.Executor, mods ...qm.QueryMod) commandsCommandOverrideQuery

CommandsCommandOverrides retrieves all the commands_command_override's commands command overrides with an executor.

func (*CommandsChannelsOverride) CommandsCommandOverridesG

func (o *CommandsChannelsOverride) CommandsCommandOverridesG(mods ...qm.QueryMod) commandsCommandOverrideQuery

CommandsCommandOverridesG retrieves all the commands_command_override's commands command overrides.

func (*CommandsChannelsOverride) Delete

func (o *CommandsChannelsOverride) Delete(exec boil.Executor) 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() error

DeleteG deletes a single CommandsChannelsOverride record. DeleteG will match against the primary key column to find the record to delete.

func (*CommandsChannelsOverride) DeleteGP

func (o *CommandsChannelsOverride) DeleteGP()

DeleteGP deletes a single CommandsChannelsOverride record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*CommandsChannelsOverride) DeleteP

func (o *CommandsChannelsOverride) DeleteP(exec boil.Executor)

DeleteP deletes a single CommandsChannelsOverride record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*CommandsChannelsOverride) Insert

func (o *CommandsChannelsOverride) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*CommandsChannelsOverride) InsertG

func (o *CommandsChannelsOverride) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*CommandsChannelsOverride) InsertGP

func (o *CommandsChannelsOverride) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*CommandsChannelsOverride) InsertP

func (o *CommandsChannelsOverride) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*CommandsChannelsOverride) Reload

func (o *CommandsChannelsOverride) Reload(exec boil.Executor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*CommandsChannelsOverride) ReloadG

func (o *CommandsChannelsOverride) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*CommandsChannelsOverride) ReloadGP

func (o *CommandsChannelsOverride) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*CommandsChannelsOverride) ReloadP

func (o *CommandsChannelsOverride) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*CommandsChannelsOverride) Update

func (o *CommandsChannelsOverride) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the CommandsChannelsOverride. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set 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(whitelist ...string) error

UpdateG a single CommandsChannelsOverride record. See Update for whitelist behavior description.

func (*CommandsChannelsOverride) UpdateGP

func (o *CommandsChannelsOverride) UpdateGP(whitelist ...string)

UpdateGP a single CommandsChannelsOverride record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*CommandsChannelsOverride) UpdateP

func (o *CommandsChannelsOverride) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the CommandsChannelsOverride, and panics on error. See Update for whitelist behavior description.

func (*CommandsChannelsOverride) Upsert

func (o *CommandsChannelsOverride) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*CommandsChannelsOverride) UpsertG

func (o *CommandsChannelsOverride) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*CommandsChannelsOverride) UpsertGP

func (o *CommandsChannelsOverride) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*CommandsChannelsOverride) UpsertP

func (o *CommandsChannelsOverride) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

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

DeleteAll deletes all rows in the slice, using an executor.

func (CommandsChannelsOverrideSlice) DeleteAllG

func (o CommandsChannelsOverrideSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (CommandsChannelsOverrideSlice) DeleteAllGP

func (o CommandsChannelsOverrideSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (CommandsChannelsOverrideSlice) DeleteAllP

func (o CommandsChannelsOverrideSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*CommandsChannelsOverrideSlice) ReloadAll

func (o *CommandsChannelsOverrideSlice) ReloadAll(exec boil.Executor) 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() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*CommandsChannelsOverrideSlice) ReloadAllGP

func (o *CommandsChannelsOverrideSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*CommandsChannelsOverrideSlice) ReloadAllP

func (o *CommandsChannelsOverrideSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (CommandsChannelsOverrideSlice) UpdateAll

func (o CommandsChannelsOverrideSlice) UpdateAll(exec boil.Executor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

func (CommandsChannelsOverrideSlice) UpdateAllG

func (o CommandsChannelsOverrideSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (CommandsChannelsOverrideSlice) UpdateAllGP

func (o CommandsChannelsOverrideSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (CommandsChannelsOverrideSlice) UpdateAllP

func (o CommandsChannelsOverrideSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

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(exec boil.Executor, 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(id int64, selectCols ...string) (*CommandsCommandOverride, error)

FindCommandsCommandOverrideG retrieves a single record by ID.

func FindCommandsCommandOverrideGP

func FindCommandsCommandOverrideGP(id int64, selectCols ...string) *CommandsCommandOverride

FindCommandsCommandOverrideGP retrieves a single record by ID, and panics on error.

func FindCommandsCommandOverrideP

func FindCommandsCommandOverrideP(exec boil.Executor, id int64, selectCols ...string) *CommandsCommandOverride

FindCommandsCommandOverrideP retrieves a single record by ID with an executor, and panics on error.

func (*CommandsCommandOverride) CommandsChannelsOverride

func (o *CommandsCommandOverride) CommandsChannelsOverride(exec boil.Executor, mods ...qm.QueryMod) commandsChannelsOverrideQuery

CommandsChannelsOverride pointed to by the foreign key.

func (*CommandsCommandOverride) CommandsChannelsOverrideG

func (o *CommandsCommandOverride) CommandsChannelsOverrideG(mods ...qm.QueryMod) commandsChannelsOverrideQuery

CommandsChannelsOverrideG pointed to by the foreign key.

func (*CommandsCommandOverride) Delete

func (o *CommandsCommandOverride) Delete(exec boil.Executor) 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() error

DeleteG deletes a single CommandsCommandOverride record. DeleteG will match against the primary key column to find the record to delete.

func (*CommandsCommandOverride) DeleteGP

func (o *CommandsCommandOverride) DeleteGP()

DeleteGP deletes a single CommandsCommandOverride record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*CommandsCommandOverride) DeleteP

func (o *CommandsCommandOverride) DeleteP(exec boil.Executor)

DeleteP deletes a single CommandsCommandOverride record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*CommandsCommandOverride) Insert

func (o *CommandsCommandOverride) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*CommandsCommandOverride) InsertG

func (o *CommandsCommandOverride) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*CommandsCommandOverride) InsertGP

func (o *CommandsCommandOverride) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*CommandsCommandOverride) InsertP

func (o *CommandsCommandOverride) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*CommandsCommandOverride) Reload

func (o *CommandsCommandOverride) Reload(exec boil.Executor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*CommandsCommandOverride) ReloadG

func (o *CommandsCommandOverride) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*CommandsCommandOverride) ReloadGP

func (o *CommandsCommandOverride) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*CommandsCommandOverride) ReloadP

func (o *CommandsCommandOverride) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*CommandsCommandOverride) SetCommandsChannelsOverride

func (o *CommandsCommandOverride) SetCommandsChannelsOverride(exec boil.Executor, insert bool, related *CommandsChannelsOverride) error

SetCommandsChannelsOverride of the commands_command_override to the related item. Sets o.R.CommandsChannelsOverride to related. Adds o to related.R.CommandsCommandOverrides.

func (*CommandsCommandOverride) SetCommandsChannelsOverrideG

func (o *CommandsCommandOverride) SetCommandsChannelsOverrideG(insert bool, related *CommandsChannelsOverride) error

SetCommandsChannelsOverrideG of the commands_command_override to the related item. Sets o.R.CommandsChannelsOverride to related. Adds o to related.R.CommandsCommandOverrides. Uses the global database handle.

func (*CommandsCommandOverride) SetCommandsChannelsOverrideGP

func (o *CommandsCommandOverride) SetCommandsChannelsOverrideGP(insert bool, related *CommandsChannelsOverride)

SetCommandsChannelsOverrideGP of the commands_command_override to the related item. Sets o.R.CommandsChannelsOverride to related. Adds o to related.R.CommandsCommandOverrides. Uses the global database handle and panics on error.

func (*CommandsCommandOverride) SetCommandsChannelsOverrideP

func (o *CommandsCommandOverride) SetCommandsChannelsOverrideP(exec boil.Executor, insert bool, related *CommandsChannelsOverride)

SetCommandsChannelsOverrideP of the commands_command_override to the related item. Sets o.R.CommandsChannelsOverride to related. Adds o to related.R.CommandsCommandOverrides. Panics on error.

func (*CommandsCommandOverride) Update

func (o *CommandsCommandOverride) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the CommandsCommandOverride. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*CommandsCommandOverride) UpdateG

func (o *CommandsCommandOverride) UpdateG(whitelist ...string) error

UpdateG a single CommandsCommandOverride record. See Update for whitelist behavior description.

func (*CommandsCommandOverride) UpdateGP

func (o *CommandsCommandOverride) UpdateGP(whitelist ...string)

UpdateGP a single CommandsCommandOverride record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*CommandsCommandOverride) UpdateP

func (o *CommandsCommandOverride) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the CommandsCommandOverride, and panics on error. See Update for whitelist behavior description.

func (*CommandsCommandOverride) Upsert

func (o *CommandsCommandOverride) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*CommandsCommandOverride) UpsertG

func (o *CommandsCommandOverride) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*CommandsCommandOverride) UpsertGP

func (o *CommandsCommandOverride) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*CommandsCommandOverride) UpsertP

func (o *CommandsCommandOverride) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

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(exec boil.Executor) error

DeleteAll deletes all rows in the slice, using an executor.

func (CommandsCommandOverrideSlice) DeleteAllG

func (o CommandsCommandOverrideSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (CommandsCommandOverrideSlice) DeleteAllGP

func (o CommandsCommandOverrideSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (CommandsCommandOverrideSlice) DeleteAllP

func (o CommandsCommandOverrideSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*CommandsCommandOverrideSlice) ReloadAll

func (o *CommandsCommandOverrideSlice) ReloadAll(exec boil.Executor) 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() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*CommandsCommandOverrideSlice) ReloadAllGP

func (o *CommandsCommandOverrideSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*CommandsCommandOverrideSlice) ReloadAllP

func (o *CommandsCommandOverrideSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (CommandsCommandOverrideSlice) UpdateAll

func (o CommandsCommandOverrideSlice) UpdateAll(exec boil.Executor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

func (CommandsCommandOverrideSlice) UpdateAllG

func (o CommandsCommandOverrideSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (CommandsCommandOverrideSlice) UpdateAllGP

func (o CommandsCommandOverrideSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (CommandsCommandOverrideSlice) UpdateAllP

func (o CommandsCommandOverrideSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type M

type M map[string]interface{}

M type is for providing columns and column values to UpdateAll.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL