models

package
v1.19.18 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2019 License: MIT Imports: 17 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 RoleCommandRels = struct {
	RoleGroup                string
	RoleMenuOptions          string
	NextRoleCommandRoleMenus string
}{
	RoleGroup:                "RoleGroup",
	RoleMenuOptions:          "RoleMenuOptions",
	NextRoleCommandRoleMenus: "NextRoleCommandRoleMenus",
}

RoleCommandRels is where relationship names are stored.

View Source
var RoleCommandWhere = struct {
	ID           whereHelperint64
	CreatedAt    whereHelpertime_Time
	UpdatedAt    whereHelpertime_Time
	GuildID      whereHelperint64
	Name         whereHelperstring
	RoleGroupID  whereHelpernull_Int64
	Role         whereHelperint64
	RequireRoles whereHelpertypes_Int64Array
	IgnoreRoles  whereHelpertypes_Int64Array
	Position     whereHelperint64
}{
	ID:           whereHelperint64{/* contains filtered or unexported fields */},
	CreatedAt:    whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:    whereHelpertime_Time{/* contains filtered or unexported fields */},
	GuildID:      whereHelperint64{/* contains filtered or unexported fields */},
	Name:         whereHelperstring{/* contains filtered or unexported fields */},
	RoleGroupID:  whereHelpernull_Int64{/* contains filtered or unexported fields */},
	Role:         whereHelperint64{/* contains filtered or unexported fields */},
	RequireRoles: whereHelpertypes_Int64Array{/* contains filtered or unexported fields */},
	IgnoreRoles:  whereHelpertypes_Int64Array{/* contains filtered or unexported fields */},
	Position:     whereHelperint64{/* contains filtered or unexported fields */},
}
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
	TemporaryRoleDuration 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",
	TemporaryRoleDuration: "temporary_role_duration",
}
View Source
var RoleGroupRels = struct {
	RoleCommands string
	RoleMenus    string
}{
	RoleCommands: "RoleCommands",
	RoleMenus:    "RoleMenus",
}

RoleGroupRels is where relationship names are stored.

View Source
var RoleGroupWhere = struct {
	ID                    whereHelperint64
	GuildID               whereHelperint64
	Name                  whereHelperstring
	RequireRoles          whereHelpertypes_Int64Array
	IgnoreRoles           whereHelpertypes_Int64Array
	Mode                  whereHelperint64
	MultipleMax           whereHelperint64
	MultipleMin           whereHelperint64
	SingleAutoToggleOff   whereHelperbool
	SingleRequireOne      whereHelperbool
	TemporaryRoleDuration whereHelperint
}{
	ID:                    whereHelperint64{/* contains filtered or unexported fields */},
	GuildID:               whereHelperint64{/* contains filtered or unexported fields */},
	Name:                  whereHelperstring{/* contains filtered or unexported fields */},
	RequireRoles:          whereHelpertypes_Int64Array{/* contains filtered or unexported fields */},
	IgnoreRoles:           whereHelpertypes_Int64Array{/* contains filtered or unexported fields */},
	Mode:                  whereHelperint64{/* contains filtered or unexported fields */},
	MultipleMax:           whereHelperint64{/* contains filtered or unexported fields */},
	MultipleMin:           whereHelperint64{/* contains filtered or unexported fields */},
	SingleAutoToggleOff:   whereHelperbool{/* contains filtered or unexported fields */},
	SingleRequireOne:      whereHelperbool{/* contains filtered or unexported fields */},
	TemporaryRoleDuration: whereHelperint{/* contains filtered or unexported fields */},
}
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
	FixedAmount                string
	SkipAmount                 string
	SetupMSGID                 string
	EditingOptionID            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",
	FixedAmount:                "fixed_amount",
	SkipAmount:                 "skip_amount",
	SetupMSGID:                 "setup_msg_id",
	EditingOptionID:            "editing_option_id",
}
View Source
var RoleMenuOptionColumns = struct {
	ID            string
	RoleCommandID string
	EmojiID       string
	UnicodeEmoji  string
	RoleMenuID    string
	EmojiAnimated string
}{
	ID:            "id",
	RoleCommandID: "role_command_id",
	EmojiID:       "emoji_id",
	UnicodeEmoji:  "unicode_emoji",
	RoleMenuID:    "role_menu_id",
	EmojiAnimated: "emoji_animated",
}
View Source
var RoleMenuOptionRels = struct {
	RoleCommand            string
	RoleMenu               string
	EditingOptionRoleMenus string
}{
	RoleCommand:            "RoleCommand",
	RoleMenu:               "RoleMenu",
	EditingOptionRoleMenus: "EditingOptionRoleMenus",
}

RoleMenuOptionRels is where relationship names are stored.

View Source
var RoleMenuOptionWhere = struct {
	ID            whereHelperint64
	RoleCommandID whereHelpernull_Int64
	EmojiID       whereHelperint64
	UnicodeEmoji  whereHelperstring
	RoleMenuID    whereHelperint64
	EmojiAnimated whereHelperbool
}{
	ID:            whereHelperint64{/* contains filtered or unexported fields */},
	RoleCommandID: whereHelpernull_Int64{/* contains filtered or unexported fields */},
	EmojiID:       whereHelperint64{/* contains filtered or unexported fields */},
	UnicodeEmoji:  whereHelperstring{/* contains filtered or unexported fields */},
	RoleMenuID:    whereHelperint64{/* contains filtered or unexported fields */},
	EmojiAnimated: whereHelperbool{/* contains filtered or unexported fields */},
}
View Source
var RoleMenuRels = struct {
	EditingOption   string
	NextRoleCommand string
	RoleGroup       string
	RoleMenuOptions string
}{
	EditingOption:   "EditingOption",
	NextRoleCommand: "NextRoleCommand",
	RoleGroup:       "RoleGroup",
	RoleMenuOptions: "RoleMenuOptions",
}

RoleMenuRels is where relationship names are stored.

View Source
var RoleMenuWhere = struct {
	MessageID                  whereHelperint64
	GuildID                    whereHelperint64
	ChannelID                  whereHelperint64
	OwnerID                    whereHelperint64
	OwnMessage                 whereHelperbool
	State                      whereHelperint64
	NextRoleCommandID          whereHelpernull_Int64
	RoleGroupID                whereHelpernull_Int64
	DisableSendDM              whereHelperbool
	RemoveRoleOnReactionRemove whereHelperbool
	FixedAmount                whereHelperbool
	SkipAmount                 whereHelperint
	SetupMSGID                 whereHelperint64
	EditingOptionID            whereHelpernull_Int64
}{
	MessageID:                  whereHelperint64{/* contains filtered or unexported fields */},
	GuildID:                    whereHelperint64{/* contains filtered or unexported fields */},
	ChannelID:                  whereHelperint64{/* contains filtered or unexported fields */},
	OwnerID:                    whereHelperint64{/* contains filtered or unexported fields */},
	OwnMessage:                 whereHelperbool{/* contains filtered or unexported fields */},
	State:                      whereHelperint64{/* contains filtered or unexported fields */},
	NextRoleCommandID:          whereHelpernull_Int64{/* contains filtered or unexported fields */},
	RoleGroupID:                whereHelpernull_Int64{/* contains filtered or unexported fields */},
	DisableSendDM:              whereHelperbool{/* contains filtered or unexported fields */},
	RemoveRoleOnReactionRemove: whereHelperbool{/* contains filtered or unexported fields */},
	FixedAmount:                whereHelperbool{/* contains filtered or unexported fields */},
	SkipAmount:                 whereHelperint{/* contains filtered or unexported fields */},
	SetupMSGID:                 whereHelperint64{/* contains filtered or unexported fields */},
	EditingOptionID:            whereHelpernull_Int64{/* contains filtered or unexported fields */},
}
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(mods ...qm.QueryMod) *queries.Query

NewQuery initializes a new Query using the passed in QueryMods

func RoleCommandExists

func RoleCommandExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

RoleCommandExists checks if the RoleCommand row exists.

func RoleCommandExistsG

func RoleCommandExistsG(ctx context.Context, iD int64) (bool, error)

RoleCommandExistsG checks if the RoleCommand row exists.

func RoleCommands

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

RoleCommands retrieves all the records using an executor.

func RoleGroupExists

func RoleGroupExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

RoleGroupExists checks if the RoleGroup row exists.

func RoleGroupExistsG

func RoleGroupExistsG(ctx context.Context, iD int64) (bool, error)

RoleGroupExistsG checks if the RoleGroup row exists.

func RoleGroups

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

RoleGroups retrieves all the records using an executor.

func RoleMenuExists

func RoleMenuExists(ctx context.Context, exec boil.ContextExecutor, messageID int64) (bool, error)

RoleMenuExists checks if the RoleMenu row exists.

func RoleMenuExistsG

func RoleMenuExistsG(ctx context.Context, messageID int64) (bool, error)

RoleMenuExistsG checks if the RoleMenu row exists.

func RoleMenuOptionExists

func RoleMenuOptionExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

RoleMenuOptionExists checks if the RoleMenuOption row exists.

func RoleMenuOptionExistsG

func RoleMenuOptionExistsG(ctx context.Context, iD int64) (bool, error)

RoleMenuOptionExistsG checks if the RoleMenuOption row exists.

func RoleMenuOptions

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

RoleMenuOptions retrieves all the records using an executor.

func RoleMenus

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

RoleMenus retrieves all the records using an executor.

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(ctx context.Context, exec boil.ContextExecutor, 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(ctx context.Context, iD int64, selectCols ...string) (*RoleCommand, error)

FindRoleCommandG retrieves a single record by ID.

func (*RoleCommand) AddNextRoleCommandRoleMenus

func (o *RoleCommand) AddNextRoleCommandRoleMenus(ctx context.Context, exec boil.ContextExecutor, 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(ctx context.Context, 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) AddRoleMenuOptions

func (o *RoleCommand) AddRoleMenuOptions(ctx context.Context, exec boil.ContextExecutor, 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(ctx context.Context, 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) Delete

func (o *RoleCommand) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, 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(ctx context.Context) (int64, error)

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

func (*RoleCommand) Insert

func (o *RoleCommand) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*RoleCommand) InsertG

func (o *RoleCommand) InsertG(ctx context.Context, columns boil.Columns) error

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

func (*RoleCommand) NextRoleCommandRoleMenus

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

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

func (*RoleCommand) Reload

func (o *RoleCommand) Reload(ctx context.Context, exec boil.ContextExecutor) error

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

func (*RoleCommand) ReloadG

func (o *RoleCommand) ReloadG(ctx context.Context) error

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

func (*RoleCommand) RemoveNextRoleCommandRoleMenus

func (o *RoleCommand) RemoveNextRoleCommandRoleMenus(ctx context.Context, exec boil.ContextExecutor, 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(ctx context.Context, 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) RemoveRoleGroup

func (o *RoleCommand) RemoveRoleGroup(ctx context.Context, exec boil.ContextExecutor, 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(ctx context.Context, 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) RemoveRoleMenuOptions

func (o *RoleCommand) RemoveRoleMenuOptions(ctx context.Context, exec boil.ContextExecutor, 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(ctx context.Context, 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) RoleGroup

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

RoleGroup pointed to by the foreign key.

func (*RoleCommand) RoleMenuOptions

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

RoleMenuOptions retrieves all the role_menu_option's RoleMenuOptions with an executor.

func (*RoleCommand) SetNextRoleCommandRoleMenus

func (o *RoleCommand) SetNextRoleCommandRoleMenus(ctx context.Context, exec boil.ContextExecutor, 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(ctx context.Context, 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) SetRoleGroup

func (o *RoleCommand) SetRoleGroup(ctx context.Context, exec boil.ContextExecutor, insert bool, related *RoleGroup) error

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

func (*RoleCommand) SetRoleGroupG

func (o *RoleCommand) SetRoleGroupG(ctx context.Context, insert bool, related *RoleGroup) error

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

func (*RoleCommand) SetRoleMenuOptions

func (o *RoleCommand) SetRoleMenuOptions(ctx context.Context, exec boil.ContextExecutor, 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(ctx context.Context, 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) Update

func (o *RoleCommand) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the RoleCommand. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*RoleCommand) UpdateG

func (o *RoleCommand) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single RoleCommand record using the global executor. See Update for more documentation.

func (*RoleCommand) Upsert

func (o *RoleCommand) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

func (*RoleCommand) UpsertG

func (o *RoleCommand) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

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

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(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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

func (RoleCommandSlice) DeleteAllG

func (o RoleCommandSlice) DeleteAllG(ctx context.Context) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*RoleCommandSlice) ReloadAll

func (o *RoleCommandSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

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

func (*RoleCommandSlice) ReloadAllG

func (o *RoleCommandSlice) ReloadAllG(ctx context.Context) error

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

func (RoleCommandSlice) UpdateAll

func (o RoleCommandSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

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

func (RoleCommandSlice) UpdateAllG

func (o RoleCommandSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

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"`
	TemporaryRoleDuration int              `boil:"temporary_role_duration" json:"temporary_role_duration" toml:"temporary_role_duration" yaml:"temporary_role_duration"`

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

RoleGroup is an object representing the database table.

func FindRoleGroup

func FindRoleGroup(ctx context.Context, exec boil.ContextExecutor, 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(ctx context.Context, iD int64, selectCols ...string) (*RoleGroup, error)

FindRoleGroupG retrieves a single record by ID.

func (*RoleGroup) AddRoleCommands

func (o *RoleGroup) AddRoleCommands(ctx context.Context, exec boil.ContextExecutor, 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(ctx context.Context, 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) AddRoleMenus

func (o *RoleGroup) AddRoleMenus(ctx context.Context, exec boil.ContextExecutor, 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(ctx context.Context, 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) Delete

func (o *RoleGroup) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, 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(ctx context.Context) (int64, error)

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

func (*RoleGroup) Insert

func (o *RoleGroup) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*RoleGroup) InsertG

func (o *RoleGroup) InsertG(ctx context.Context, columns boil.Columns) error

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

func (*RoleGroup) Reload

func (o *RoleGroup) Reload(ctx context.Context, exec boil.ContextExecutor) error

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

func (*RoleGroup) ReloadG

func (o *RoleGroup) ReloadG(ctx context.Context) error

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

func (*RoleGroup) RemoveRoleCommands

func (o *RoleGroup) RemoveRoleCommands(ctx context.Context, exec boil.ContextExecutor, 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(ctx context.Context, 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) RemoveRoleMenus

func (o *RoleGroup) RemoveRoleMenus(ctx context.Context, exec boil.ContextExecutor, 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(ctx context.Context, 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) RoleCommands

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

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

func (*RoleGroup) RoleMenus

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

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

func (*RoleGroup) SetRoleCommands

func (o *RoleGroup) SetRoleCommands(ctx context.Context, exec boil.ContextExecutor, 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(ctx context.Context, 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) SetRoleMenus

func (o *RoleGroup) SetRoleMenus(ctx context.Context, exec boil.ContextExecutor, 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(ctx context.Context, 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) Update

func (o *RoleGroup) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the RoleGroup. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*RoleGroup) UpdateG

func (o *RoleGroup) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single RoleGroup record using the global executor. See Update for more documentation.

func (*RoleGroup) Upsert

func (o *RoleGroup) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

func (*RoleGroup) UpsertG

func (o *RoleGroup) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

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

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(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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

func (RoleGroupSlice) DeleteAllG

func (o RoleGroupSlice) DeleteAllG(ctx context.Context) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*RoleGroupSlice) ReloadAll

func (o *RoleGroupSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

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

func (*RoleGroupSlice) ReloadAllG

func (o *RoleGroupSlice) ReloadAllG(ctx context.Context) error

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

func (RoleGroupSlice) UpdateAll

func (o RoleGroupSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

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

func (RoleGroupSlice) UpdateAllG

func (o RoleGroupSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

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 */
	FixedAmount                bool       `boil:"fixed_amount" json:"fixed_amount" toml:"fixed_amount" yaml:"fixed_amount"`
	SkipAmount                 int        `boil:"skip_amount" json:"skip_amount" toml:"skip_amount" yaml:"skip_amount"`
	SetupMSGID                 int64      `boil:"setup_msg_id" json:"setup_msg_id" toml:"setup_msg_id" yaml:"setup_msg_id"`
	EditingOptionID            null.Int64 `boil:"editing_option_id" json:"editing_option_id,omitempty" toml:"editing_option_id" yaml:"editing_option_id,omitempty"`

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

RoleMenu is an object representing the database table.

func FindRoleMenu

func FindRoleMenu(ctx context.Context, exec boil.ContextExecutor, 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(ctx context.Context, messageID int64, selectCols ...string) (*RoleMenu, error)

FindRoleMenuG retrieves a single record by ID.

func (*RoleMenu) AddRoleMenuOptions

func (o *RoleMenu) AddRoleMenuOptions(ctx context.Context, exec boil.ContextExecutor, 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(ctx context.Context, 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) Delete

func (o *RoleMenu) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, 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(ctx context.Context) (int64, error)

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

func (*RoleMenu) EditingOption added in v1.8.0

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

EditingOption pointed to by the foreign key.

func (*RoleMenu) Insert

func (o *RoleMenu) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*RoleMenu) InsertG

func (o *RoleMenu) InsertG(ctx context.Context, columns boil.Columns) error

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

func (*RoleMenu) NextRoleCommand

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

NextRoleCommand pointed to by the foreign key.

func (*RoleMenu) Reload

func (o *RoleMenu) Reload(ctx context.Context, exec boil.ContextExecutor) error

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

func (*RoleMenu) ReloadG

func (o *RoleMenu) ReloadG(ctx context.Context) error

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

func (*RoleMenu) RemoveEditingOption added in v1.8.0

func (o *RoleMenu) RemoveEditingOption(ctx context.Context, exec boil.ContextExecutor, related *RoleMenuOption) error

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

func (*RoleMenu) RemoveEditingOptionG added in v1.8.0

func (o *RoleMenu) RemoveEditingOptionG(ctx context.Context, related *RoleMenuOption) error

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

func (*RoleMenu) RemoveNextRoleCommand

func (o *RoleMenu) RemoveNextRoleCommand(ctx context.Context, exec boil.ContextExecutor, 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(ctx context.Context, 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) RemoveRoleGroup

func (o *RoleMenu) RemoveRoleGroup(ctx context.Context, exec boil.ContextExecutor, 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(ctx context.Context, 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) RoleGroup

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

RoleGroup pointed to by the foreign key.

func (*RoleMenu) RoleMenuOptions

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

RoleMenuOptions retrieves all the role_menu_option's RoleMenuOptions with an executor.

func (*RoleMenu) SetEditingOption added in v1.8.0

func (o *RoleMenu) SetEditingOption(ctx context.Context, exec boil.ContextExecutor, insert bool, related *RoleMenuOption) error

SetEditingOption of the roleMenu to the related item. Sets o.R.EditingOption to related. Adds o to related.R.EditingOptionRoleMenus.

func (*RoleMenu) SetEditingOptionG added in v1.8.0

func (o *RoleMenu) SetEditingOptionG(ctx context.Context, insert bool, related *RoleMenuOption) error

SetEditingOptionG of the roleMenu to the related item. Sets o.R.EditingOption to related. Adds o to related.R.EditingOptionRoleMenus. Uses the global database handle.

func (*RoleMenu) SetNextRoleCommand

func (o *RoleMenu) SetNextRoleCommand(ctx context.Context, exec boil.ContextExecutor, insert bool, related *RoleCommand) error

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

func (*RoleMenu) SetNextRoleCommandG

func (o *RoleMenu) SetNextRoleCommandG(ctx context.Context, insert bool, related *RoleCommand) error

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

func (*RoleMenu) SetRoleGroup

func (o *RoleMenu) SetRoleGroup(ctx context.Context, exec boil.ContextExecutor, insert bool, related *RoleGroup) error

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

func (*RoleMenu) SetRoleGroupG

func (o *RoleMenu) SetRoleGroupG(ctx context.Context, insert bool, related *RoleGroup) error

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

func (*RoleMenu) Update

func (o *RoleMenu) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the RoleMenu. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*RoleMenu) UpdateG

func (o *RoleMenu) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single RoleMenu record using the global executor. See Update for more documentation.

func (*RoleMenu) Upsert

func (o *RoleMenu) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

func (*RoleMenu) UpsertG

func (o *RoleMenu) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

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

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"`
	EmojiAnimated bool       `boil:"emoji_animated" json:"emoji_animated" toml:"emoji_animated" yaml:"emoji_animated"`

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

RoleMenuOption is an object representing the database table.

func FindRoleMenuOption

func FindRoleMenuOption(ctx context.Context, exec boil.ContextExecutor, 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(ctx context.Context, iD int64, selectCols ...string) (*RoleMenuOption, error)

FindRoleMenuOptionG retrieves a single record by ID.

func (*RoleMenuOption) AddEditingOptionRoleMenus added in v1.8.0

func (o *RoleMenuOption) AddEditingOptionRoleMenus(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*RoleMenu) error

AddEditingOptionRoleMenus adds the given related objects to the existing relationships of the role_menu_option, optionally inserting them as new records. Appends related to o.R.EditingOptionRoleMenus. Sets related.R.EditingOption appropriately.

func (*RoleMenuOption) AddEditingOptionRoleMenusG added in v1.8.0

func (o *RoleMenuOption) AddEditingOptionRoleMenusG(ctx context.Context, insert bool, related ...*RoleMenu) error

AddEditingOptionRoleMenusG adds the given related objects to the existing relationships of the role_menu_option, optionally inserting them as new records. Appends related to o.R.EditingOptionRoleMenus. Sets related.R.EditingOption appropriately. Uses the global database handle.

func (*RoleMenuOption) Delete

func (o *RoleMenuOption) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, 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(ctx context.Context) (int64, error)

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

func (*RoleMenuOption) EditingOptionRoleMenus added in v1.8.0

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

EditingOptionRoleMenus retrieves all the role_menu's RoleMenus with an executor via editing_option_id column.

func (*RoleMenuOption) Insert

func (o *RoleMenuOption) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*RoleMenuOption) InsertG

func (o *RoleMenuOption) InsertG(ctx context.Context, columns boil.Columns) error

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

func (*RoleMenuOption) Reload

func (o *RoleMenuOption) Reload(ctx context.Context, exec boil.ContextExecutor) error

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

func (*RoleMenuOption) ReloadG

func (o *RoleMenuOption) ReloadG(ctx context.Context) error

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

func (*RoleMenuOption) RemoveEditingOptionRoleMenus added in v1.8.0

func (o *RoleMenuOption) RemoveEditingOptionRoleMenus(ctx context.Context, exec boil.ContextExecutor, related ...*RoleMenu) error

RemoveEditingOptionRoleMenus relationships from objects passed in. Removes related items from R.EditingOptionRoleMenus (uses pointer comparison, removal does not keep order) Sets related.R.EditingOption.

func (*RoleMenuOption) RemoveEditingOptionRoleMenusG added in v1.8.0

func (o *RoleMenuOption) RemoveEditingOptionRoleMenusG(ctx context.Context, related ...*RoleMenu) error

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

func (*RoleMenuOption) RemoveRoleCommand

func (o *RoleMenuOption) RemoveRoleCommand(ctx context.Context, exec boil.ContextExecutor, 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(ctx context.Context, 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) RoleCommand

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

RoleCommand pointed to by the foreign key.

func (*RoleMenuOption) RoleMenu

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

RoleMenu pointed to by the foreign key.

func (*RoleMenuOption) SetEditingOptionRoleMenus added in v1.8.0

func (o *RoleMenuOption) SetEditingOptionRoleMenus(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*RoleMenu) error

SetEditingOptionRoleMenus removes all previously related items of the role_menu_option replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.EditingOption's EditingOptionRoleMenus accordingly. Replaces o.R.EditingOptionRoleMenus with related. Sets related.R.EditingOption's EditingOptionRoleMenus accordingly.

func (*RoleMenuOption) SetEditingOptionRoleMenusG added in v1.8.0

func (o *RoleMenuOption) SetEditingOptionRoleMenusG(ctx context.Context, insert bool, related ...*RoleMenu) error

SetEditingOptionRoleMenusG removes all previously related items of the role_menu_option replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.EditingOption's EditingOptionRoleMenus accordingly. Replaces o.R.EditingOptionRoleMenus with related. Sets related.R.EditingOption's EditingOptionRoleMenus accordingly. Uses the global database handle.

func (*RoleMenuOption) SetRoleCommand

func (o *RoleMenuOption) SetRoleCommand(ctx context.Context, exec boil.ContextExecutor, insert bool, related *RoleCommand) error

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

func (*RoleMenuOption) SetRoleCommandG

func (o *RoleMenuOption) SetRoleCommandG(ctx context.Context, insert bool, related *RoleCommand) error

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

func (*RoleMenuOption) SetRoleMenu

func (o *RoleMenuOption) SetRoleMenu(ctx context.Context, exec boil.ContextExecutor, insert bool, related *RoleMenu) error

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

func (*RoleMenuOption) SetRoleMenuG

func (o *RoleMenuOption) SetRoleMenuG(ctx context.Context, insert bool, related *RoleMenu) error

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

func (*RoleMenuOption) Update

func (o *RoleMenuOption) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the RoleMenuOption. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*RoleMenuOption) UpdateG

func (o *RoleMenuOption) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single RoleMenuOption record using the global executor. See Update for more documentation.

func (*RoleMenuOption) Upsert

func (o *RoleMenuOption) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

func (*RoleMenuOption) UpsertG

func (o *RoleMenuOption) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

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

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

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

func (RoleMenuOptionSlice) DeleteAllG

func (o RoleMenuOptionSlice) DeleteAllG(ctx context.Context) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*RoleMenuOptionSlice) ReloadAll

func (o *RoleMenuOptionSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

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

func (*RoleMenuOptionSlice) ReloadAllG

func (o *RoleMenuOptionSlice) ReloadAllG(ctx context.Context) error

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

func (RoleMenuOptionSlice) UpdateAll

func (o RoleMenuOptionSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

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

func (RoleMenuOptionSlice) UpdateAllG

func (o RoleMenuOptionSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

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(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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

func (RoleMenuSlice) DeleteAllG

func (o RoleMenuSlice) DeleteAllG(ctx context.Context) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*RoleMenuSlice) ReloadAll

func (o *RoleMenuSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

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

func (*RoleMenuSlice) ReloadAllG

func (o *RoleMenuSlice) ReloadAllG(ctx context.Context) error

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

func (RoleMenuSlice) UpdateAll

func (o RoleMenuSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

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

func (RoleMenuSlice) UpdateAllG

func (o RoleMenuSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

Jump to

Keyboard shortcuts

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