models

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2018 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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 RoleCommandColumns = struct {
	ID           string
	CreatedAt    string
	UpdatedAt    string
	GuildID      string
	Name         string
	RoleGroupID  string
	Role         string
	RequireRoles string
	IgnoreRoles  string
	Position     string
}{
	ID:           "id",
	CreatedAt:    "created_at",
	UpdatedAt:    "updated_at",
	GuildID:      "guild_id",
	Name:         "name",
	RoleGroupID:  "role_group_id",
	Role:         "role",
	RequireRoles: "require_roles",
	IgnoreRoles:  "ignore_roles",
	Position:     "position",
}
View Source
var RoleGroupColumns = struct {
	ID                  string
	GuildID             string
	Name                string
	RequireRoles        string
	IgnoreRoles         string
	Mode                string
	MultipleMax         string
	MultipleMin         string
	SingleAutoToggleOff string
	SingleRequireOne    string
}{
	ID:                  "id",
	GuildID:             "guild_id",
	Name:                "name",
	RequireRoles:        "require_roles",
	IgnoreRoles:         "ignore_roles",
	Mode:                "mode",
	MultipleMax:         "multiple_max",
	MultipleMin:         "multiple_min",
	SingleAutoToggleOff: "single_auto_toggle_off",
	SingleRequireOne:    "single_require_one",
}
View Source
var RoleMenuColumns = struct {
	MessageID                  string
	GuildID                    string
	ChannelID                  string
	OwnerID                    string
	OwnMessage                 string
	State                      string
	NextRoleCommandID          string
	RoleGroupID                string
	DisableSendDM              string
	RemoveRoleOnReactionRemove string
}{
	MessageID:                  "message_id",
	GuildID:                    "guild_id",
	ChannelID:                  "channel_id",
	OwnerID:                    "owner_id",
	OwnMessage:                 "own_message",
	State:                      "state",
	NextRoleCommandID:          "next_role_command_id",
	RoleGroupID:                "role_group_id",
	DisableSendDM:              "disable_send_dm",
	RemoveRoleOnReactionRemove: "remove_role_on_reaction_remove",
}
View Source
var RoleMenuOptionColumns = struct {
	ID            string
	RoleCommandID string
	EmojiID       string
	UnicodeEmoji  string
	RoleMenuID    string
}{
	ID:            "id",
	RoleCommandID: "role_command_id",
	EmojiID:       "emoji_id",
	UnicodeEmoji:  "unicode_emoji",
	RoleMenuID:    "role_menu_id",
}
View Source
var TableNames = struct {
	RoleCommands    string
	RoleGroups      string
	RoleMenuOptions string
	RoleMenus       string
}{
	RoleCommands:    "role_commands",
	RoleGroups:      "role_groups",
	RoleMenuOptions: "role_menu_options",
	RoleMenus:       "role_menus",
}

Functions

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

func RoleCommandExists

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

RoleCommandExists checks if the RoleCommand row exists.

func RoleCommandExistsG

func RoleCommandExistsG(id int64) (bool, error)

RoleCommandExistsG checks if the RoleCommand row exists.

func RoleCommandExistsGP

func RoleCommandExistsGP(id int64) bool

RoleCommandExistsGP checks if the RoleCommand row exists. Panics on error.

func RoleCommandExistsP

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

RoleCommandExistsP checks if the RoleCommand row exists. Panics on error.

func RoleCommands

func RoleCommands(exec boil.Executor, mods ...qm.QueryMod) roleCommandQuery

RoleCommands retrieves all the records using an executor.

func RoleCommandsG

func RoleCommandsG(mods ...qm.QueryMod) roleCommandQuery

RoleCommandsG retrieves all records.

func RoleGroupExists

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

RoleGroupExists checks if the RoleGroup row exists.

func RoleGroupExistsG

func RoleGroupExistsG(id int64) (bool, error)

RoleGroupExistsG checks if the RoleGroup row exists.

func RoleGroupExistsGP

func RoleGroupExistsGP(id int64) bool

RoleGroupExistsGP checks if the RoleGroup row exists. Panics on error.

func RoleGroupExistsP

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

RoleGroupExistsP checks if the RoleGroup row exists. Panics on error.

func RoleGroups

func RoleGroups(exec boil.Executor, mods ...qm.QueryMod) roleGroupQuery

RoleGroups retrieves all the records using an executor.

func RoleGroupsG

func RoleGroupsG(mods ...qm.QueryMod) roleGroupQuery

RoleGroupsG retrieves all records.

func RoleMenuExists

func RoleMenuExists(exec boil.Executor, messageID int64) (bool, error)

RoleMenuExists checks if the RoleMenu row exists.

func RoleMenuExistsG

func RoleMenuExistsG(messageID int64) (bool, error)

RoleMenuExistsG checks if the RoleMenu row exists.

func RoleMenuExistsGP

func RoleMenuExistsGP(messageID int64) bool

RoleMenuExistsGP checks if the RoleMenu row exists. Panics on error.

func RoleMenuExistsP

func RoleMenuExistsP(exec boil.Executor, messageID int64) bool

RoleMenuExistsP checks if the RoleMenu row exists. Panics on error.

func RoleMenuOptionExists

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

RoleMenuOptionExists checks if the RoleMenuOption row exists.

func RoleMenuOptionExistsG

func RoleMenuOptionExistsG(id int64) (bool, error)

RoleMenuOptionExistsG checks if the RoleMenuOption row exists.

func RoleMenuOptionExistsGP

func RoleMenuOptionExistsGP(id int64) bool

RoleMenuOptionExistsGP checks if the RoleMenuOption row exists. Panics on error.

func RoleMenuOptionExistsP

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

RoleMenuOptionExistsP checks if the RoleMenuOption row exists. Panics on error.

func RoleMenuOptions

func RoleMenuOptions(exec boil.Executor, mods ...qm.QueryMod) roleMenuOptionQuery

RoleMenuOptions retrieves all the records using an executor.

func RoleMenuOptionsG

func RoleMenuOptionsG(mods ...qm.QueryMod) roleMenuOptionQuery

RoleMenuOptionsG retrieves all records.

func RoleMenus

func RoleMenus(exec boil.Executor, mods ...qm.QueryMod) roleMenuQuery

RoleMenus retrieves all the records using an executor.

func RoleMenusG

func RoleMenusG(mods ...qm.QueryMod) roleMenuQuery

RoleMenusG retrieves all records.

Types

type M

type M map[string]interface{}

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

type RoleCommand

type RoleCommand 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"`
	GuildID      int64            `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"`
	Name         string           `boil:"name" json:"name" toml:"name" yaml:"name"`
	RoleGroupID  null.Int64       `boil:"role_group_id" json:"role_group_id,omitempty" toml:"role_group_id" yaml:"role_group_id,omitempty"`
	Role         int64            `boil:"role" json:"role" toml:"role" yaml:"role"`
	RequireRoles types.Int64Array `boil:"require_roles" json:"require_roles,omitempty" toml:"require_roles" yaml:"require_roles,omitempty"`
	IgnoreRoles  types.Int64Array `boil:"ignore_roles" json:"ignore_roles,omitempty" toml:"ignore_roles" yaml:"ignore_roles,omitempty"`
	Position     int64            `boil:"position" json:"position" toml:"position" yaml:"position"`

	R *roleCommandR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L roleCommandL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

RoleCommand is an object representing the database table.

func FindRoleCommand

func FindRoleCommand(exec boil.Executor, id int64, selectCols ...string) (*RoleCommand, error)

FindRoleCommand retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindRoleCommandG

func FindRoleCommandG(id int64, selectCols ...string) (*RoleCommand, error)

FindRoleCommandG retrieves a single record by ID.

func FindRoleCommandGP

func FindRoleCommandGP(id int64, selectCols ...string) *RoleCommand

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

func FindRoleCommandP

func FindRoleCommandP(exec boil.Executor, id int64, selectCols ...string) *RoleCommand

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

func (*RoleCommand) AddNextRoleCommandRoleMenus

func (o *RoleCommand) AddNextRoleCommandRoleMenus(exec boil.Executor, insert bool, related ...*RoleMenu) error

AddNextRoleCommandRoleMenus adds the given related objects to the existing relationships of the role_command, optionally inserting them as new records. Appends related to o.R.NextRoleCommandRoleMenus. Sets related.R.NextRoleCommand appropriately.

func (*RoleCommand) AddNextRoleCommandRoleMenusG

func (o *RoleCommand) AddNextRoleCommandRoleMenusG(insert bool, related ...*RoleMenu) error

AddNextRoleCommandRoleMenusG adds the given related objects to the existing relationships of the role_command, optionally inserting them as new records. Appends related to o.R.NextRoleCommandRoleMenus. Sets related.R.NextRoleCommand appropriately. Uses the global database handle.

func (*RoleCommand) AddNextRoleCommandRoleMenusGP

func (o *RoleCommand) AddNextRoleCommandRoleMenusGP(insert bool, related ...*RoleMenu)

AddNextRoleCommandRoleMenusGP adds the given related objects to the existing relationships of the role_command, optionally inserting them as new records. Appends related to o.R.NextRoleCommandRoleMenus. Sets related.R.NextRoleCommand appropriately. Uses the global database handle and panics on error.

func (*RoleCommand) AddNextRoleCommandRoleMenusP

func (o *RoleCommand) AddNextRoleCommandRoleMenusP(exec boil.Executor, insert bool, related ...*RoleMenu)

AddNextRoleCommandRoleMenusP adds the given related objects to the existing relationships of the role_command, optionally inserting them as new records. Appends related to o.R.NextRoleCommandRoleMenus. Sets related.R.NextRoleCommand appropriately. Panics on error.

func (*RoleCommand) AddRoleMenuOptions

func (o *RoleCommand) AddRoleMenuOptions(exec boil.Executor, insert bool, related ...*RoleMenuOption) error

AddRoleMenuOptions adds the given related objects to the existing relationships of the role_command, optionally inserting them as new records. Appends related to o.R.RoleMenuOptions. Sets related.R.RoleCommand appropriately.

func (*RoleCommand) AddRoleMenuOptionsG

func (o *RoleCommand) AddRoleMenuOptionsG(insert bool, related ...*RoleMenuOption) error

AddRoleMenuOptionsG adds the given related objects to the existing relationships of the role_command, optionally inserting them as new records. Appends related to o.R.RoleMenuOptions. Sets related.R.RoleCommand appropriately. Uses the global database handle.

func (*RoleCommand) AddRoleMenuOptionsGP

func (o *RoleCommand) AddRoleMenuOptionsGP(insert bool, related ...*RoleMenuOption)

AddRoleMenuOptionsGP adds the given related objects to the existing relationships of the role_command, optionally inserting them as new records. Appends related to o.R.RoleMenuOptions. Sets related.R.RoleCommand appropriately. Uses the global database handle and panics on error.

func (*RoleCommand) AddRoleMenuOptionsP

func (o *RoleCommand) AddRoleMenuOptionsP(exec boil.Executor, insert bool, related ...*RoleMenuOption)

AddRoleMenuOptionsP adds the given related objects to the existing relationships of the role_command, optionally inserting them as new records. Appends related to o.R.RoleMenuOptions. Sets related.R.RoleCommand appropriately. Panics on error.

func (*RoleCommand) Delete

func (o *RoleCommand) Delete(exec boil.Executor) error

Delete deletes a single RoleCommand record with an executor. Delete will match against the primary key column to find the record to delete.

func (*RoleCommand) DeleteG

func (o *RoleCommand) DeleteG() error

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

func (*RoleCommand) DeleteGP

func (o *RoleCommand) DeleteGP()

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

func (*RoleCommand) DeleteP

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

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

func (*RoleCommand) Insert

func (o *RoleCommand) 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 (*RoleCommand) InsertG

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

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

func (*RoleCommand) InsertGP

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

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

func (*RoleCommand) InsertP

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

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

func (*RoleCommand) NextRoleCommandRoleMenus

func (o *RoleCommand) NextRoleCommandRoleMenus(exec boil.Executor, mods ...qm.QueryMod) roleMenuQuery

NextRoleCommandRoleMenus retrieves all the role_menu's role menus with an executor via next_role_command_id column.

func (*RoleCommand) NextRoleCommandRoleMenusG

func (o *RoleCommand) NextRoleCommandRoleMenusG(mods ...qm.QueryMod) roleMenuQuery

NextRoleCommandRoleMenusG retrieves all the role_menu's role menus via next_role_command_id column.

func (*RoleCommand) Reload

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

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

func (*RoleCommand) ReloadG

func (o *RoleCommand) ReloadG() error

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

func (*RoleCommand) ReloadGP

func (o *RoleCommand) ReloadGP()

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

func (*RoleCommand) ReloadP

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

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

func (*RoleCommand) RemoveNextRoleCommandRoleMenus

func (o *RoleCommand) RemoveNextRoleCommandRoleMenus(exec boil.Executor, related ...*RoleMenu) error

RemoveNextRoleCommandRoleMenus relationships from objects passed in. Removes related items from R.NextRoleCommandRoleMenus (uses pointer comparison, removal does not keep order) Sets related.R.NextRoleCommand.

func (*RoleCommand) RemoveNextRoleCommandRoleMenusG

func (o *RoleCommand) RemoveNextRoleCommandRoleMenusG(related ...*RoleMenu) error

RemoveNextRoleCommandRoleMenusG relationships from objects passed in. Removes related items from R.NextRoleCommandRoleMenus (uses pointer comparison, removal does not keep order) Sets related.R.NextRoleCommand. Uses the global database handle.

func (*RoleCommand) RemoveNextRoleCommandRoleMenusGP

func (o *RoleCommand) RemoveNextRoleCommandRoleMenusGP(related ...*RoleMenu)

RemoveNextRoleCommandRoleMenusGP relationships from objects passed in. Removes related items from R.NextRoleCommandRoleMenus (uses pointer comparison, removal does not keep order) Sets related.R.NextRoleCommand. Uses the global database handle and panics on error.

func (*RoleCommand) RemoveNextRoleCommandRoleMenusP

func (o *RoleCommand) RemoveNextRoleCommandRoleMenusP(exec boil.Executor, related ...*RoleMenu)

RemoveNextRoleCommandRoleMenusP relationships from objects passed in. Removes related items from R.NextRoleCommandRoleMenus (uses pointer comparison, removal does not keep order) Sets related.R.NextRoleCommand. Panics on error.

func (*RoleCommand) RemoveRoleGroup

func (o *RoleCommand) RemoveRoleGroup(exec boil.Executor, related *RoleGroup) error

RemoveRoleGroup relationship. Sets o.R.RoleGroup to nil. Removes o from all passed in related items' relationships struct (Optional).

func (*RoleCommand) RemoveRoleGroupG

func (o *RoleCommand) RemoveRoleGroupG(related *RoleGroup) error

RemoveRoleGroupG relationship. Sets o.R.RoleGroup to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle.

func (*RoleCommand) RemoveRoleGroupGP

func (o *RoleCommand) RemoveRoleGroupGP(related *RoleGroup)

RemoveRoleGroupGP relationship. Sets o.R.RoleGroup to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle and panics on error.

func (*RoleCommand) RemoveRoleGroupP

func (o *RoleCommand) RemoveRoleGroupP(exec boil.Executor, related *RoleGroup)

RemoveRoleGroupP relationship. Sets o.R.RoleGroup to nil. Removes o from all passed in related items' relationships struct (Optional). Panics on error.

func (*RoleCommand) RemoveRoleMenuOptions

func (o *RoleCommand) RemoveRoleMenuOptions(exec boil.Executor, related ...*RoleMenuOption) error

RemoveRoleMenuOptions relationships from objects passed in. Removes related items from R.RoleMenuOptions (uses pointer comparison, removal does not keep order) Sets related.R.RoleCommand.

func (*RoleCommand) RemoveRoleMenuOptionsG

func (o *RoleCommand) RemoveRoleMenuOptionsG(related ...*RoleMenuOption) error

RemoveRoleMenuOptionsG relationships from objects passed in. Removes related items from R.RoleMenuOptions (uses pointer comparison, removal does not keep order) Sets related.R.RoleCommand. Uses the global database handle.

func (*RoleCommand) RemoveRoleMenuOptionsGP

func (o *RoleCommand) RemoveRoleMenuOptionsGP(related ...*RoleMenuOption)

RemoveRoleMenuOptionsGP relationships from objects passed in. Removes related items from R.RoleMenuOptions (uses pointer comparison, removal does not keep order) Sets related.R.RoleCommand. Uses the global database handle and panics on error.

func (*RoleCommand) RemoveRoleMenuOptionsP

func (o *RoleCommand) RemoveRoleMenuOptionsP(exec boil.Executor, related ...*RoleMenuOption)

RemoveRoleMenuOptionsP relationships from objects passed in. Removes related items from R.RoleMenuOptions (uses pointer comparison, removal does not keep order) Sets related.R.RoleCommand. Panics on error.

func (*RoleCommand) RoleGroup

func (o *RoleCommand) RoleGroup(exec boil.Executor, mods ...qm.QueryMod) roleGroupQuery

RoleGroup pointed to by the foreign key.

func (*RoleCommand) RoleGroupG

func (o *RoleCommand) RoleGroupG(mods ...qm.QueryMod) roleGroupQuery

RoleGroupG pointed to by the foreign key.

func (*RoleCommand) RoleMenuOptions

func (o *RoleCommand) RoleMenuOptions(exec boil.Executor, mods ...qm.QueryMod) roleMenuOptionQuery

RoleMenuOptions retrieves all the role_menu_option's role menu options with an executor.

func (*RoleCommand) RoleMenuOptionsG

func (o *RoleCommand) RoleMenuOptionsG(mods ...qm.QueryMod) roleMenuOptionQuery

RoleMenuOptionsG retrieves all the role_menu_option's role menu options.

func (*RoleCommand) SetNextRoleCommandRoleMenus

func (o *RoleCommand) SetNextRoleCommandRoleMenus(exec boil.Executor, insert bool, related ...*RoleMenu) error

SetNextRoleCommandRoleMenus removes all previously related items of the role_command replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.NextRoleCommand's NextRoleCommandRoleMenus accordingly. Replaces o.R.NextRoleCommandRoleMenus with related. Sets related.R.NextRoleCommand's NextRoleCommandRoleMenus accordingly.

func (*RoleCommand) SetNextRoleCommandRoleMenusG

func (o *RoleCommand) SetNextRoleCommandRoleMenusG(insert bool, related ...*RoleMenu) error

SetNextRoleCommandRoleMenusG removes all previously related items of the role_command replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.NextRoleCommand's NextRoleCommandRoleMenus accordingly. Replaces o.R.NextRoleCommandRoleMenus with related. Sets related.R.NextRoleCommand's NextRoleCommandRoleMenus accordingly. Uses the global database handle.

func (*RoleCommand) SetNextRoleCommandRoleMenusGP

func (o *RoleCommand) SetNextRoleCommandRoleMenusGP(insert bool, related ...*RoleMenu)

SetNextRoleCommandRoleMenusGP removes all previously related items of the role_command replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.NextRoleCommand's NextRoleCommandRoleMenus accordingly. Replaces o.R.NextRoleCommandRoleMenus with related. Sets related.R.NextRoleCommand's NextRoleCommandRoleMenus accordingly. Uses the global database handle and panics on error.

func (*RoleCommand) SetNextRoleCommandRoleMenusP

func (o *RoleCommand) SetNextRoleCommandRoleMenusP(exec boil.Executor, insert bool, related ...*RoleMenu)

SetNextRoleCommandRoleMenusP removes all previously related items of the role_command replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.NextRoleCommand's NextRoleCommandRoleMenus accordingly. Replaces o.R.NextRoleCommandRoleMenus with related. Sets related.R.NextRoleCommand's NextRoleCommandRoleMenus accordingly. Panics on error.

func (*RoleCommand) SetRoleGroup

func (o *RoleCommand) SetRoleGroup(exec boil.Executor, insert bool, related *RoleGroup) error

SetRoleGroup of the role_command to the related item. Sets o.R.RoleGroup to related. Adds o to related.R.RoleCommands.

func (*RoleCommand) SetRoleGroupG

func (o *RoleCommand) SetRoleGroupG(insert bool, related *RoleGroup) error

SetRoleGroupG of the role_command to the related item. Sets o.R.RoleGroup to related. Adds o to related.R.RoleCommands. Uses the global database handle.

func (*RoleCommand) SetRoleGroupGP

func (o *RoleCommand) SetRoleGroupGP(insert bool, related *RoleGroup)

SetRoleGroupGP of the role_command to the related item. Sets o.R.RoleGroup to related. Adds o to related.R.RoleCommands. Uses the global database handle and panics on error.

func (*RoleCommand) SetRoleGroupP

func (o *RoleCommand) SetRoleGroupP(exec boil.Executor, insert bool, related *RoleGroup)

SetRoleGroupP of the role_command to the related item. Sets o.R.RoleGroup to related. Adds o to related.R.RoleCommands. Panics on error.

func (*RoleCommand) SetRoleMenuOptions

func (o *RoleCommand) SetRoleMenuOptions(exec boil.Executor, insert bool, related ...*RoleMenuOption) error

SetRoleMenuOptions removes all previously related items of the role_command replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.RoleCommand's RoleMenuOptions accordingly. Replaces o.R.RoleMenuOptions with related. Sets related.R.RoleCommand's RoleMenuOptions accordingly.

func (*RoleCommand) SetRoleMenuOptionsG

func (o *RoleCommand) SetRoleMenuOptionsG(insert bool, related ...*RoleMenuOption) error

SetRoleMenuOptionsG removes all previously related items of the role_command replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.RoleCommand's RoleMenuOptions accordingly. Replaces o.R.RoleMenuOptions with related. Sets related.R.RoleCommand's RoleMenuOptions accordingly. Uses the global database handle.

func (*RoleCommand) SetRoleMenuOptionsGP

func (o *RoleCommand) SetRoleMenuOptionsGP(insert bool, related ...*RoleMenuOption)

SetRoleMenuOptionsGP removes all previously related items of the role_command replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.RoleCommand's RoleMenuOptions accordingly. Replaces o.R.RoleMenuOptions with related. Sets related.R.RoleCommand's RoleMenuOptions accordingly. Uses the global database handle and panics on error.

func (*RoleCommand) SetRoleMenuOptionsP

func (o *RoleCommand) SetRoleMenuOptionsP(exec boil.Executor, insert bool, related ...*RoleMenuOption)

SetRoleMenuOptionsP removes all previously related items of the role_command replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.RoleCommand's RoleMenuOptions accordingly. Replaces o.R.RoleMenuOptions with related. Sets related.R.RoleCommand's RoleMenuOptions accordingly. Panics on error.

func (*RoleCommand) Update

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

Update uses an executor to update the RoleCommand. 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 (*RoleCommand) UpdateG

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

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

func (*RoleCommand) UpdateGP

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

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

func (*RoleCommand) UpdateP

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

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

func (*RoleCommand) Upsert

func (o *RoleCommand) 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 (*RoleCommand) UpsertG

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

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

func (*RoleCommand) UpsertGP

func (o *RoleCommand) 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 (*RoleCommand) UpsertP

func (o *RoleCommand) 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 RoleCommandSlice

type RoleCommandSlice []*RoleCommand

RoleCommandSlice is an alias for a slice of pointers to RoleCommand. This should generally be used opposed to []RoleCommand.

func (RoleCommandSlice) DeleteAll

func (o RoleCommandSlice) DeleteAll(exec boil.Executor) error

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

func (RoleCommandSlice) DeleteAllG

func (o RoleCommandSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (RoleCommandSlice) DeleteAllGP

func (o RoleCommandSlice) DeleteAllGP()

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

func (RoleCommandSlice) DeleteAllP

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

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

func (*RoleCommandSlice) ReloadAll

func (o *RoleCommandSlice) 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 (*RoleCommandSlice) ReloadAllG

func (o *RoleCommandSlice) ReloadAllG() error

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

func (*RoleCommandSlice) ReloadAllGP

func (o *RoleCommandSlice) 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 (*RoleCommandSlice) ReloadAllP

func (o *RoleCommandSlice) 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 (RoleCommandSlice) UpdateAll

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

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

func (RoleCommandSlice) UpdateAllG

func (o RoleCommandSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (RoleCommandSlice) UpdateAllGP

func (o RoleCommandSlice) UpdateAllGP(cols M)

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

func (RoleCommandSlice) UpdateAllP

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

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

type RoleGroup

type RoleGroup 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"`
	RequireRoles        types.Int64Array `boil:"require_roles" json:"require_roles,omitempty" toml:"require_roles" yaml:"require_roles,omitempty"`
	IgnoreRoles         types.Int64Array `boil:"ignore_roles" json:"ignore_roles,omitempty" toml:"ignore_roles" yaml:"ignore_roles,omitempty"`
	Mode                int64            `boil:"mode" json:"mode" toml:"mode" yaml:"mode"`
	MultipleMax         int64            `boil:"multiple_max" json:"multiple_max" toml:"multiple_max" yaml:"multiple_max"`
	MultipleMin         int64            `boil:"multiple_min" json:"multiple_min" toml:"multiple_min" yaml:"multiple_min"`
	SingleAutoToggleOff bool             `boil:"single_auto_toggle_off" json:"single_auto_toggle_off" toml:"single_auto_toggle_off" yaml:"single_auto_toggle_off"`
	SingleRequireOne    bool             `boil:"single_require_one" json:"single_require_one" toml:"single_require_one" yaml:"single_require_one"`

	R *roleGroupR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L roleGroupL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

RoleGroup is an object representing the database table.

func FindRoleGroup

func FindRoleGroup(exec boil.Executor, id int64, selectCols ...string) (*RoleGroup, error)

FindRoleGroup retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindRoleGroupG

func FindRoleGroupG(id int64, selectCols ...string) (*RoleGroup, error)

FindRoleGroupG retrieves a single record by ID.

func FindRoleGroupGP

func FindRoleGroupGP(id int64, selectCols ...string) *RoleGroup

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

func FindRoleGroupP

func FindRoleGroupP(exec boil.Executor, id int64, selectCols ...string) *RoleGroup

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

func (*RoleGroup) AddRoleCommands

func (o *RoleGroup) AddRoleCommands(exec boil.Executor, insert bool, related ...*RoleCommand) error

AddRoleCommands adds the given related objects to the existing relationships of the role_group, optionally inserting them as new records. Appends related to o.R.RoleCommands. Sets related.R.RoleGroup appropriately.

func (*RoleGroup) AddRoleCommandsG

func (o *RoleGroup) AddRoleCommandsG(insert bool, related ...*RoleCommand) error

AddRoleCommandsG adds the given related objects to the existing relationships of the role_group, optionally inserting them as new records. Appends related to o.R.RoleCommands. Sets related.R.RoleGroup appropriately. Uses the global database handle.

func (*RoleGroup) AddRoleCommandsGP

func (o *RoleGroup) AddRoleCommandsGP(insert bool, related ...*RoleCommand)

AddRoleCommandsGP adds the given related objects to the existing relationships of the role_group, optionally inserting them as new records. Appends related to o.R.RoleCommands. Sets related.R.RoleGroup appropriately. Uses the global database handle and panics on error.

func (*RoleGroup) AddRoleCommandsP

func (o *RoleGroup) AddRoleCommandsP(exec boil.Executor, insert bool, related ...*RoleCommand)

AddRoleCommandsP adds the given related objects to the existing relationships of the role_group, optionally inserting them as new records. Appends related to o.R.RoleCommands. Sets related.R.RoleGroup appropriately. Panics on error.

func (*RoleGroup) AddRoleMenus

func (o *RoleGroup) AddRoleMenus(exec boil.Executor, insert bool, related ...*RoleMenu) error

AddRoleMenus adds the given related objects to the existing relationships of the role_group, optionally inserting them as new records. Appends related to o.R.RoleMenus. Sets related.R.RoleGroup appropriately.

func (*RoleGroup) AddRoleMenusG

func (o *RoleGroup) AddRoleMenusG(insert bool, related ...*RoleMenu) error

AddRoleMenusG adds the given related objects to the existing relationships of the role_group, optionally inserting them as new records. Appends related to o.R.RoleMenus. Sets related.R.RoleGroup appropriately. Uses the global database handle.

func (*RoleGroup) AddRoleMenusGP

func (o *RoleGroup) AddRoleMenusGP(insert bool, related ...*RoleMenu)

AddRoleMenusGP adds the given related objects to the existing relationships of the role_group, optionally inserting them as new records. Appends related to o.R.RoleMenus. Sets related.R.RoleGroup appropriately. Uses the global database handle and panics on error.

func (*RoleGroup) AddRoleMenusP

func (o *RoleGroup) AddRoleMenusP(exec boil.Executor, insert bool, related ...*RoleMenu)

AddRoleMenusP adds the given related objects to the existing relationships of the role_group, optionally inserting them as new records. Appends related to o.R.RoleMenus. Sets related.R.RoleGroup appropriately. Panics on error.

func (*RoleGroup) Delete

func (o *RoleGroup) Delete(exec boil.Executor) error

Delete deletes a single RoleGroup record with an executor. Delete will match against the primary key column to find the record to delete.

func (*RoleGroup) DeleteG

func (o *RoleGroup) DeleteG() error

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

func (*RoleGroup) DeleteGP

func (o *RoleGroup) DeleteGP()

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

func (*RoleGroup) DeleteP

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

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

func (*RoleGroup) Insert

func (o *RoleGroup) 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 (*RoleGroup) InsertG

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

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

func (*RoleGroup) InsertGP

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

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

func (*RoleGroup) InsertP

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

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

func (*RoleGroup) Reload

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

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

func (*RoleGroup) ReloadG

func (o *RoleGroup) ReloadG() error

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

func (*RoleGroup) ReloadGP

func (o *RoleGroup) ReloadGP()

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

func (*RoleGroup) ReloadP

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

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

func (*RoleGroup) RemoveRoleCommands

func (o *RoleGroup) RemoveRoleCommands(exec boil.Executor, related ...*RoleCommand) error

RemoveRoleCommands relationships from objects passed in. Removes related items from R.RoleCommands (uses pointer comparison, removal does not keep order) Sets related.R.RoleGroup.

func (*RoleGroup) RemoveRoleCommandsG

func (o *RoleGroup) RemoveRoleCommandsG(related ...*RoleCommand) error

RemoveRoleCommandsG relationships from objects passed in. Removes related items from R.RoleCommands (uses pointer comparison, removal does not keep order) Sets related.R.RoleGroup. Uses the global database handle.

func (*RoleGroup) RemoveRoleCommandsGP

func (o *RoleGroup) RemoveRoleCommandsGP(related ...*RoleCommand)

RemoveRoleCommandsGP relationships from objects passed in. Removes related items from R.RoleCommands (uses pointer comparison, removal does not keep order) Sets related.R.RoleGroup. Uses the global database handle and panics on error.

func (*RoleGroup) RemoveRoleCommandsP

func (o *RoleGroup) RemoveRoleCommandsP(exec boil.Executor, related ...*RoleCommand)

RemoveRoleCommandsP relationships from objects passed in. Removes related items from R.RoleCommands (uses pointer comparison, removal does not keep order) Sets related.R.RoleGroup. Panics on error.

func (*RoleGroup) RemoveRoleMenus

func (o *RoleGroup) RemoveRoleMenus(exec boil.Executor, related ...*RoleMenu) error

RemoveRoleMenus relationships from objects passed in. Removes related items from R.RoleMenus (uses pointer comparison, removal does not keep order) Sets related.R.RoleGroup.

func (*RoleGroup) RemoveRoleMenusG

func (o *RoleGroup) RemoveRoleMenusG(related ...*RoleMenu) error

RemoveRoleMenusG relationships from objects passed in. Removes related items from R.RoleMenus (uses pointer comparison, removal does not keep order) Sets related.R.RoleGroup. Uses the global database handle.

func (*RoleGroup) RemoveRoleMenusGP

func (o *RoleGroup) RemoveRoleMenusGP(related ...*RoleMenu)

RemoveRoleMenusGP relationships from objects passed in. Removes related items from R.RoleMenus (uses pointer comparison, removal does not keep order) Sets related.R.RoleGroup. Uses the global database handle and panics on error.

func (*RoleGroup) RemoveRoleMenusP

func (o *RoleGroup) RemoveRoleMenusP(exec boil.Executor, related ...*RoleMenu)

RemoveRoleMenusP relationships from objects passed in. Removes related items from R.RoleMenus (uses pointer comparison, removal does not keep order) Sets related.R.RoleGroup. Panics on error.

func (*RoleGroup) RoleCommands

func (o *RoleGroup) RoleCommands(exec boil.Executor, mods ...qm.QueryMod) roleCommandQuery

RoleCommands retrieves all the role_command's role commands with an executor.

func (*RoleGroup) RoleCommandsG

func (o *RoleGroup) RoleCommandsG(mods ...qm.QueryMod) roleCommandQuery

RoleCommandsG retrieves all the role_command's role commands.

func (*RoleGroup) RoleMenus

func (o *RoleGroup) RoleMenus(exec boil.Executor, mods ...qm.QueryMod) roleMenuQuery

RoleMenus retrieves all the role_menu's role menus with an executor.

func (*RoleGroup) RoleMenusG

func (o *RoleGroup) RoleMenusG(mods ...qm.QueryMod) roleMenuQuery

RoleMenusG retrieves all the role_menu's role menus.

func (*RoleGroup) SetRoleCommands

func (o *RoleGroup) SetRoleCommands(exec boil.Executor, insert bool, related ...*RoleCommand) error

SetRoleCommands removes all previously related items of the role_group replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.RoleGroup's RoleCommands accordingly. Replaces o.R.RoleCommands with related. Sets related.R.RoleGroup's RoleCommands accordingly.

func (*RoleGroup) SetRoleCommandsG

func (o *RoleGroup) SetRoleCommandsG(insert bool, related ...*RoleCommand) error

SetRoleCommandsG removes all previously related items of the role_group replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.RoleGroup's RoleCommands accordingly. Replaces o.R.RoleCommands with related. Sets related.R.RoleGroup's RoleCommands accordingly. Uses the global database handle.

func (*RoleGroup) SetRoleCommandsGP

func (o *RoleGroup) SetRoleCommandsGP(insert bool, related ...*RoleCommand)

SetRoleCommandsGP removes all previously related items of the role_group replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.RoleGroup's RoleCommands accordingly. Replaces o.R.RoleCommands with related. Sets related.R.RoleGroup's RoleCommands accordingly. Uses the global database handle and panics on error.

func (*RoleGroup) SetRoleCommandsP

func (o *RoleGroup) SetRoleCommandsP(exec boil.Executor, insert bool, related ...*RoleCommand)

SetRoleCommandsP removes all previously related items of the role_group replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.RoleGroup's RoleCommands accordingly. Replaces o.R.RoleCommands with related. Sets related.R.RoleGroup's RoleCommands accordingly. Panics on error.

func (*RoleGroup) SetRoleMenus

func (o *RoleGroup) SetRoleMenus(exec boil.Executor, insert bool, related ...*RoleMenu) error

SetRoleMenus removes all previously related items of the role_group replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.RoleGroup's RoleMenus accordingly. Replaces o.R.RoleMenus with related. Sets related.R.RoleGroup's RoleMenus accordingly.

func (*RoleGroup) SetRoleMenusG

func (o *RoleGroup) SetRoleMenusG(insert bool, related ...*RoleMenu) error

SetRoleMenusG removes all previously related items of the role_group replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.RoleGroup's RoleMenus accordingly. Replaces o.R.RoleMenus with related. Sets related.R.RoleGroup's RoleMenus accordingly. Uses the global database handle.

func (*RoleGroup) SetRoleMenusGP

func (o *RoleGroup) SetRoleMenusGP(insert bool, related ...*RoleMenu)

SetRoleMenusGP removes all previously related items of the role_group replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.RoleGroup's RoleMenus accordingly. Replaces o.R.RoleMenus with related. Sets related.R.RoleGroup's RoleMenus accordingly. Uses the global database handle and panics on error.

func (*RoleGroup) SetRoleMenusP

func (o *RoleGroup) SetRoleMenusP(exec boil.Executor, insert bool, related ...*RoleMenu)

SetRoleMenusP removes all previously related items of the role_group replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.RoleGroup's RoleMenus accordingly. Replaces o.R.RoleMenus with related. Sets related.R.RoleGroup's RoleMenus accordingly. Panics on error.

func (*RoleGroup) Update

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

Update uses an executor to update the RoleGroup. 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 (*RoleGroup) UpdateG

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

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

func (*RoleGroup) UpdateGP

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

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

func (*RoleGroup) UpdateP

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

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

func (*RoleGroup) Upsert

func (o *RoleGroup) 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 (*RoleGroup) UpsertG

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

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

func (*RoleGroup) UpsertGP

func (o *RoleGroup) 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 (*RoleGroup) UpsertP

func (o *RoleGroup) 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 RoleGroupSlice

type RoleGroupSlice []*RoleGroup

RoleGroupSlice is an alias for a slice of pointers to RoleGroup. This should generally be used opposed to []RoleGroup.

func (RoleGroupSlice) DeleteAll

func (o RoleGroupSlice) DeleteAll(exec boil.Executor) error

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

func (RoleGroupSlice) DeleteAllG

func (o RoleGroupSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (RoleGroupSlice) DeleteAllGP

func (o RoleGroupSlice) DeleteAllGP()

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

func (RoleGroupSlice) DeleteAllP

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

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

func (*RoleGroupSlice) ReloadAll

func (o *RoleGroupSlice) 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 (*RoleGroupSlice) ReloadAllG

func (o *RoleGroupSlice) ReloadAllG() error

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

func (*RoleGroupSlice) ReloadAllGP

func (o *RoleGroupSlice) 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 (*RoleGroupSlice) ReloadAllP

func (o *RoleGroupSlice) 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 (RoleGroupSlice) UpdateAll

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

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

func (RoleGroupSlice) UpdateAllG

func (o RoleGroupSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (RoleGroupSlice) UpdateAllGP

func (o RoleGroupSlice) UpdateAllGP(cols M)

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

func (RoleGroupSlice) UpdateAllP

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

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

type RoleMenu

type RoleMenu struct {
	MessageID                  int64      `boil:"message_id" json:"message_id" toml:"message_id" yaml:"message_id"`
	GuildID                    int64      `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"`
	ChannelID                  int64      `boil:"channel_id" json:"channel_id" toml:"channel_id" yaml:"channel_id"`
	OwnerID                    int64      `boil:"owner_id" json:"owner_id" toml:"owner_id" yaml:"owner_id"`
	OwnMessage                 bool       `boil:"own_message" json:"own_message" toml:"own_message" yaml:"own_message"`
	State                      int64      `boil:"state" json:"state" toml:"state" yaml:"state"`
	NextRoleCommandID          null.Int64 `` /* 131-byte string literal not displayed */
	RoleGroupID                null.Int64 `boil:"role_group_id" json:"role_group_id,omitempty" toml:"role_group_id" yaml:"role_group_id,omitempty"`
	DisableSendDM              bool       `boil:"disable_send_dm" json:"disable_send_dm" toml:"disable_send_dm" yaml:"disable_send_dm"`
	RemoveRoleOnReactionRemove bool       `` /* 151-byte string literal not displayed */

	R *roleMenuR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L roleMenuL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

RoleMenu is an object representing the database table.

func FindRoleMenu

func FindRoleMenu(exec boil.Executor, messageID int64, selectCols ...string) (*RoleMenu, error)

FindRoleMenu retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindRoleMenuG

func FindRoleMenuG(messageID int64, selectCols ...string) (*RoleMenu, error)

FindRoleMenuG retrieves a single record by ID.

func FindRoleMenuGP

func FindRoleMenuGP(messageID int64, selectCols ...string) *RoleMenu

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

func FindRoleMenuP

func FindRoleMenuP(exec boil.Executor, messageID int64, selectCols ...string) *RoleMenu

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

func (*RoleMenu) AddRoleMenuOptions

func (o *RoleMenu) AddRoleMenuOptions(exec boil.Executor, insert bool, related ...*RoleMenuOption) error

AddRoleMenuOptions adds the given related objects to the existing relationships of the role_menu, optionally inserting them as new records. Appends related to o.R.RoleMenuOptions. Sets related.R.RoleMenu appropriately.

func (*RoleMenu) AddRoleMenuOptionsG

func (o *RoleMenu) AddRoleMenuOptionsG(insert bool, related ...*RoleMenuOption) error

AddRoleMenuOptionsG adds the given related objects to the existing relationships of the role_menu, optionally inserting them as new records. Appends related to o.R.RoleMenuOptions. Sets related.R.RoleMenu appropriately. Uses the global database handle.

func (*RoleMenu) AddRoleMenuOptionsGP

func (o *RoleMenu) AddRoleMenuOptionsGP(insert bool, related ...*RoleMenuOption)

AddRoleMenuOptionsGP adds the given related objects to the existing relationships of the role_menu, optionally inserting them as new records. Appends related to o.R.RoleMenuOptions. Sets related.R.RoleMenu appropriately. Uses the global database handle and panics on error.

func (*RoleMenu) AddRoleMenuOptionsP

func (o *RoleMenu) AddRoleMenuOptionsP(exec boil.Executor, insert bool, related ...*RoleMenuOption)

AddRoleMenuOptionsP adds the given related objects to the existing relationships of the role_menu, optionally inserting them as new records. Appends related to o.R.RoleMenuOptions. Sets related.R.RoleMenu appropriately. Panics on error.

func (*RoleMenu) Delete

func (o *RoleMenu) Delete(exec boil.Executor) error

Delete deletes a single RoleMenu record with an executor. Delete will match against the primary key column to find the record to delete.

func (*RoleMenu) DeleteG

func (o *RoleMenu) DeleteG() error

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

func (*RoleMenu) DeleteGP

func (o *RoleMenu) DeleteGP()

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

func (*RoleMenu) DeleteP

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

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

func (*RoleMenu) Insert

func (o *RoleMenu) 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 (*RoleMenu) InsertG

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

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

func (*RoleMenu) InsertGP

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

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

func (*RoleMenu) InsertP

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

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

func (*RoleMenu) NextRoleCommand

func (o *RoleMenu) NextRoleCommand(exec boil.Executor, mods ...qm.QueryMod) roleCommandQuery

NextRoleCommand pointed to by the foreign key.

func (*RoleMenu) NextRoleCommandG

func (o *RoleMenu) NextRoleCommandG(mods ...qm.QueryMod) roleCommandQuery

NextRoleCommandG pointed to by the foreign key.

func (*RoleMenu) Reload

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

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

func (*RoleMenu) ReloadG

func (o *RoleMenu) ReloadG() error

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

func (*RoleMenu) ReloadGP

func (o *RoleMenu) ReloadGP()

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

func (*RoleMenu) ReloadP

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

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

func (*RoleMenu) RemoveNextRoleCommand

func (o *RoleMenu) RemoveNextRoleCommand(exec boil.Executor, related *RoleCommand) error

RemoveNextRoleCommand relationship. Sets o.R.NextRoleCommand to nil. Removes o from all passed in related items' relationships struct (Optional).

func (*RoleMenu) RemoveNextRoleCommandG

func (o *RoleMenu) RemoveNextRoleCommandG(related *RoleCommand) error

RemoveNextRoleCommandG relationship. Sets o.R.NextRoleCommand to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle.

func (*RoleMenu) RemoveNextRoleCommandGP

func (o *RoleMenu) RemoveNextRoleCommandGP(related *RoleCommand)

RemoveNextRoleCommandGP relationship. Sets o.R.NextRoleCommand to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle and panics on error.

func (*RoleMenu) RemoveNextRoleCommandP

func (o *RoleMenu) RemoveNextRoleCommandP(exec boil.Executor, related *RoleCommand)

RemoveNextRoleCommandP relationship. Sets o.R.NextRoleCommand to nil. Removes o from all passed in related items' relationships struct (Optional). Panics on error.

func (*RoleMenu) RemoveRoleGroup

func (o *RoleMenu) RemoveRoleGroup(exec boil.Executor, related *RoleGroup) error

RemoveRoleGroup relationship. Sets o.R.RoleGroup to nil. Removes o from all passed in related items' relationships struct (Optional).

func (*RoleMenu) RemoveRoleGroupG

func (o *RoleMenu) RemoveRoleGroupG(related *RoleGroup) error

RemoveRoleGroupG relationship. Sets o.R.RoleGroup to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle.

func (*RoleMenu) RemoveRoleGroupGP

func (o *RoleMenu) RemoveRoleGroupGP(related *RoleGroup)

RemoveRoleGroupGP relationship. Sets o.R.RoleGroup to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle and panics on error.

func (*RoleMenu) RemoveRoleGroupP

func (o *RoleMenu) RemoveRoleGroupP(exec boil.Executor, related *RoleGroup)

RemoveRoleGroupP relationship. Sets o.R.RoleGroup to nil. Removes o from all passed in related items' relationships struct (Optional). Panics on error.

func (*RoleMenu) RoleGroup

func (o *RoleMenu) RoleGroup(exec boil.Executor, mods ...qm.QueryMod) roleGroupQuery

RoleGroup pointed to by the foreign key.

func (*RoleMenu) RoleGroupG

func (o *RoleMenu) RoleGroupG(mods ...qm.QueryMod) roleGroupQuery

RoleGroupG pointed to by the foreign key.

func (*RoleMenu) RoleMenuOptions

func (o *RoleMenu) RoleMenuOptions(exec boil.Executor, mods ...qm.QueryMod) roleMenuOptionQuery

RoleMenuOptions retrieves all the role_menu_option's role menu options with an executor.

func (*RoleMenu) RoleMenuOptionsG

func (o *RoleMenu) RoleMenuOptionsG(mods ...qm.QueryMod) roleMenuOptionQuery

RoleMenuOptionsG retrieves all the role_menu_option's role menu options.

func (*RoleMenu) SetNextRoleCommand

func (o *RoleMenu) SetNextRoleCommand(exec boil.Executor, insert bool, related *RoleCommand) error

SetNextRoleCommand of the role_menu to the related item. Sets o.R.NextRoleCommand to related. Adds o to related.R.NextRoleCommandRoleMenus.

func (*RoleMenu) SetNextRoleCommandG

func (o *RoleMenu) SetNextRoleCommandG(insert bool, related *RoleCommand) error

SetNextRoleCommandG of the role_menu to the related item. Sets o.R.NextRoleCommand to related. Adds o to related.R.NextRoleCommandRoleMenus. Uses the global database handle.

func (*RoleMenu) SetNextRoleCommandGP

func (o *RoleMenu) SetNextRoleCommandGP(insert bool, related *RoleCommand)

SetNextRoleCommandGP of the role_menu to the related item. Sets o.R.NextRoleCommand to related. Adds o to related.R.NextRoleCommandRoleMenus. Uses the global database handle and panics on error.

func (*RoleMenu) SetNextRoleCommandP

func (o *RoleMenu) SetNextRoleCommandP(exec boil.Executor, insert bool, related *RoleCommand)

SetNextRoleCommandP of the role_menu to the related item. Sets o.R.NextRoleCommand to related. Adds o to related.R.NextRoleCommandRoleMenus. Panics on error.

func (*RoleMenu) SetRoleGroup

func (o *RoleMenu) SetRoleGroup(exec boil.Executor, insert bool, related *RoleGroup) error

SetRoleGroup of the role_menu to the related item. Sets o.R.RoleGroup to related. Adds o to related.R.RoleMenus.

func (*RoleMenu) SetRoleGroupG

func (o *RoleMenu) SetRoleGroupG(insert bool, related *RoleGroup) error

SetRoleGroupG of the role_menu to the related item. Sets o.R.RoleGroup to related. Adds o to related.R.RoleMenus. Uses the global database handle.

func (*RoleMenu) SetRoleGroupGP

func (o *RoleMenu) SetRoleGroupGP(insert bool, related *RoleGroup)

SetRoleGroupGP of the role_menu to the related item. Sets o.R.RoleGroup to related. Adds o to related.R.RoleMenus. Uses the global database handle and panics on error.

func (*RoleMenu) SetRoleGroupP

func (o *RoleMenu) SetRoleGroupP(exec boil.Executor, insert bool, related *RoleGroup)

SetRoleGroupP of the role_menu to the related item. Sets o.R.RoleGroup to related. Adds o to related.R.RoleMenus. Panics on error.

func (*RoleMenu) Update

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

Update uses an executor to update the RoleMenu. 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 (*RoleMenu) UpdateG

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

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

func (*RoleMenu) UpdateGP

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

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

func (*RoleMenu) UpdateP

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

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

func (*RoleMenu) Upsert

func (o *RoleMenu) 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 (*RoleMenu) UpsertG

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

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

func (*RoleMenu) UpsertGP

func (o *RoleMenu) 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 (*RoleMenu) UpsertP

func (o *RoleMenu) 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 RoleMenuOption

type RoleMenuOption struct {
	ID            int64      `boil:"id" json:"id" toml:"id" yaml:"id"`
	RoleCommandID null.Int64 `boil:"role_command_id" json:"role_command_id,omitempty" toml:"role_command_id" yaml:"role_command_id,omitempty"`
	EmojiID       int64      `boil:"emoji_id" json:"emoji_id" toml:"emoji_id" yaml:"emoji_id"`
	UnicodeEmoji  string     `boil:"unicode_emoji" json:"unicode_emoji" toml:"unicode_emoji" yaml:"unicode_emoji"`
	RoleMenuID    int64      `boil:"role_menu_id" json:"role_menu_id" toml:"role_menu_id" yaml:"role_menu_id"`

	R *roleMenuOptionR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L roleMenuOptionL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

RoleMenuOption is an object representing the database table.

func FindRoleMenuOption

func FindRoleMenuOption(exec boil.Executor, id int64, selectCols ...string) (*RoleMenuOption, error)

FindRoleMenuOption retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindRoleMenuOptionG

func FindRoleMenuOptionG(id int64, selectCols ...string) (*RoleMenuOption, error)

FindRoleMenuOptionG retrieves a single record by ID.

func FindRoleMenuOptionGP

func FindRoleMenuOptionGP(id int64, selectCols ...string) *RoleMenuOption

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

func FindRoleMenuOptionP

func FindRoleMenuOptionP(exec boil.Executor, id int64, selectCols ...string) *RoleMenuOption

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

func (*RoleMenuOption) Delete

func (o *RoleMenuOption) Delete(exec boil.Executor) error

Delete deletes a single RoleMenuOption record with an executor. Delete will match against the primary key column to find the record to delete.

func (*RoleMenuOption) DeleteG

func (o *RoleMenuOption) DeleteG() error

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

func (*RoleMenuOption) DeleteGP

func (o *RoleMenuOption) DeleteGP()

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

func (*RoleMenuOption) DeleteP

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

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

func (*RoleMenuOption) Insert

func (o *RoleMenuOption) 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 (*RoleMenuOption) InsertG

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

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

func (*RoleMenuOption) InsertGP

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

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

func (*RoleMenuOption) InsertP

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

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

func (*RoleMenuOption) Reload

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

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

func (*RoleMenuOption) ReloadG

func (o *RoleMenuOption) ReloadG() error

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

func (*RoleMenuOption) ReloadGP

func (o *RoleMenuOption) ReloadGP()

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

func (*RoleMenuOption) ReloadP

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

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

func (*RoleMenuOption) RemoveRoleCommand

func (o *RoleMenuOption) RemoveRoleCommand(exec boil.Executor, related *RoleCommand) error

RemoveRoleCommand relationship. Sets o.R.RoleCommand to nil. Removes o from all passed in related items' relationships struct (Optional).

func (*RoleMenuOption) RemoveRoleCommandG

func (o *RoleMenuOption) RemoveRoleCommandG(related *RoleCommand) error

RemoveRoleCommandG relationship. Sets o.R.RoleCommand to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle.

func (*RoleMenuOption) RemoveRoleCommandGP

func (o *RoleMenuOption) RemoveRoleCommandGP(related *RoleCommand)

RemoveRoleCommandGP relationship. Sets o.R.RoleCommand to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle and panics on error.

func (*RoleMenuOption) RemoveRoleCommandP

func (o *RoleMenuOption) RemoveRoleCommandP(exec boil.Executor, related *RoleCommand)

RemoveRoleCommandP relationship. Sets o.R.RoleCommand to nil. Removes o from all passed in related items' relationships struct (Optional). Panics on error.

func (*RoleMenuOption) RoleCommand

func (o *RoleMenuOption) RoleCommand(exec boil.Executor, mods ...qm.QueryMod) roleCommandQuery

RoleCommand pointed to by the foreign key.

func (*RoleMenuOption) RoleCommandG

func (o *RoleMenuOption) RoleCommandG(mods ...qm.QueryMod) roleCommandQuery

RoleCommandG pointed to by the foreign key.

func (*RoleMenuOption) RoleMenu

func (o *RoleMenuOption) RoleMenu(exec boil.Executor, mods ...qm.QueryMod) roleMenuQuery

RoleMenu pointed to by the foreign key.

func (*RoleMenuOption) RoleMenuG

func (o *RoleMenuOption) RoleMenuG(mods ...qm.QueryMod) roleMenuQuery

RoleMenuG pointed to by the foreign key.

func (*RoleMenuOption) SetRoleCommand

func (o *RoleMenuOption) SetRoleCommand(exec boil.Executor, insert bool, related *RoleCommand) error

SetRoleCommand of the role_menu_option to the related item. Sets o.R.RoleCommand to related. Adds o to related.R.RoleMenuOptions.

func (*RoleMenuOption) SetRoleCommandG

func (o *RoleMenuOption) SetRoleCommandG(insert bool, related *RoleCommand) error

SetRoleCommandG of the role_menu_option to the related item. Sets o.R.RoleCommand to related. Adds o to related.R.RoleMenuOptions. Uses the global database handle.

func (*RoleMenuOption) SetRoleCommandGP

func (o *RoleMenuOption) SetRoleCommandGP(insert bool, related *RoleCommand)

SetRoleCommandGP of the role_menu_option to the related item. Sets o.R.RoleCommand to related. Adds o to related.R.RoleMenuOptions. Uses the global database handle and panics on error.

func (*RoleMenuOption) SetRoleCommandP

func (o *RoleMenuOption) SetRoleCommandP(exec boil.Executor, insert bool, related *RoleCommand)

SetRoleCommandP of the role_menu_option to the related item. Sets o.R.RoleCommand to related. Adds o to related.R.RoleMenuOptions. Panics on error.

func (*RoleMenuOption) SetRoleMenu

func (o *RoleMenuOption) SetRoleMenu(exec boil.Executor, insert bool, related *RoleMenu) error

SetRoleMenu of the role_menu_option to the related item. Sets o.R.RoleMenu to related. Adds o to related.R.RoleMenuOptions.

func (*RoleMenuOption) SetRoleMenuG

func (o *RoleMenuOption) SetRoleMenuG(insert bool, related *RoleMenu) error

SetRoleMenuG of the role_menu_option to the related item. Sets o.R.RoleMenu to related. Adds o to related.R.RoleMenuOptions. Uses the global database handle.

func (*RoleMenuOption) SetRoleMenuGP

func (o *RoleMenuOption) SetRoleMenuGP(insert bool, related *RoleMenu)

SetRoleMenuGP of the role_menu_option to the related item. Sets o.R.RoleMenu to related. Adds o to related.R.RoleMenuOptions. Uses the global database handle and panics on error.

func (*RoleMenuOption) SetRoleMenuP

func (o *RoleMenuOption) SetRoleMenuP(exec boil.Executor, insert bool, related *RoleMenu)

SetRoleMenuP of the role_menu_option to the related item. Sets o.R.RoleMenu to related. Adds o to related.R.RoleMenuOptions. Panics on error.

func (*RoleMenuOption) Update

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

Update uses an executor to update the RoleMenuOption. 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 (*RoleMenuOption) UpdateG

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

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

func (*RoleMenuOption) UpdateGP

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

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

func (*RoleMenuOption) UpdateP

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

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

func (*RoleMenuOption) Upsert

func (o *RoleMenuOption) 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 (*RoleMenuOption) UpsertG

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

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

func (*RoleMenuOption) UpsertGP

func (o *RoleMenuOption) 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 (*RoleMenuOption) UpsertP

func (o *RoleMenuOption) 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 RoleMenuOptionSlice

type RoleMenuOptionSlice []*RoleMenuOption

RoleMenuOptionSlice is an alias for a slice of pointers to RoleMenuOption. This should generally be used opposed to []RoleMenuOption.

func (RoleMenuOptionSlice) DeleteAll

func (o RoleMenuOptionSlice) DeleteAll(exec boil.Executor) error

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

func (RoleMenuOptionSlice) DeleteAllG

func (o RoleMenuOptionSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (RoleMenuOptionSlice) DeleteAllGP

func (o RoleMenuOptionSlice) DeleteAllGP()

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

func (RoleMenuOptionSlice) DeleteAllP

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

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

func (*RoleMenuOptionSlice) ReloadAll

func (o *RoleMenuOptionSlice) 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 (*RoleMenuOptionSlice) ReloadAllG

func (o *RoleMenuOptionSlice) ReloadAllG() error

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

func (*RoleMenuOptionSlice) ReloadAllGP

func (o *RoleMenuOptionSlice) 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 (*RoleMenuOptionSlice) ReloadAllP

func (o *RoleMenuOptionSlice) 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 (RoleMenuOptionSlice) UpdateAll

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

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

func (RoleMenuOptionSlice) UpdateAllG

func (o RoleMenuOptionSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (RoleMenuOptionSlice) UpdateAllGP

func (o RoleMenuOptionSlice) UpdateAllGP(cols M)

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

func (RoleMenuOptionSlice) UpdateAllP

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

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

type RoleMenuSlice

type RoleMenuSlice []*RoleMenu

RoleMenuSlice is an alias for a slice of pointers to RoleMenu. This should generally be used opposed to []RoleMenu.

func (RoleMenuSlice) DeleteAll

func (o RoleMenuSlice) DeleteAll(exec boil.Executor) error

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

func (RoleMenuSlice) DeleteAllG

func (o RoleMenuSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (RoleMenuSlice) DeleteAllGP

func (o RoleMenuSlice) DeleteAllGP()

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

func (RoleMenuSlice) DeleteAllP

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

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

func (*RoleMenuSlice) ReloadAll

func (o *RoleMenuSlice) 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 (*RoleMenuSlice) ReloadAllG

func (o *RoleMenuSlice) ReloadAllG() error

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

func (*RoleMenuSlice) ReloadAllGP

func (o *RoleMenuSlice) 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 (*RoleMenuSlice) ReloadAllP

func (o *RoleMenuSlice) 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 (RoleMenuSlice) UpdateAll

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

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

func (RoleMenuSlice) UpdateAllG

func (o RoleMenuSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (RoleMenuSlice) UpdateAllGP

func (o RoleMenuSlice) UpdateAllGP(cols M)

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

func (RoleMenuSlice) UpdateAllP

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

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

Jump to

Keyboard shortcuts

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