Documentation ¶
Index ¶
- Variables
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func RoleCommandExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func RoleCommandExistsG(ctx context.Context, iD int64) (bool, error)
- func RoleCommands(mods ...qm.QueryMod) roleCommandQuery
- func RoleGroupExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func RoleGroupExistsG(ctx context.Context, iD int64) (bool, error)
- func RoleGroups(mods ...qm.QueryMod) roleGroupQuery
- func RoleMenuExists(ctx context.Context, exec boil.ContextExecutor, messageID int64) (bool, error)
- func RoleMenuExistsG(ctx context.Context, messageID int64) (bool, error)
- func RoleMenuOptionExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func RoleMenuOptionExistsG(ctx context.Context, iD int64) (bool, error)
- func RoleMenuOptions(mods ...qm.QueryMod) roleMenuOptionQuery
- func RoleMenus(mods ...qm.QueryMod) roleMenuQuery
- type M
- type RoleCommand
- func (o *RoleCommand) AddNextRoleCommandRoleMenus(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *RoleCommand) AddNextRoleCommandRoleMenusG(ctx context.Context, insert bool, related ...*RoleMenu) error
- func (o *RoleCommand) AddRoleMenuOptions(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *RoleCommand) AddRoleMenuOptionsG(ctx context.Context, insert bool, related ...*RoleMenuOption) error
- func (o *RoleCommand) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *RoleCommand) DeleteG(ctx context.Context) (int64, error)
- func (o *RoleCommand) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *RoleCommand) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *RoleCommand) NextRoleCommandRoleMenus(mods ...qm.QueryMod) roleMenuQuery
- func (o *RoleCommand) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *RoleCommand) ReloadG(ctx context.Context) error
- func (o *RoleCommand) RemoveNextRoleCommandRoleMenus(ctx context.Context, exec boil.ContextExecutor, related ...*RoleMenu) error
- func (o *RoleCommand) RemoveNextRoleCommandRoleMenusG(ctx context.Context, related ...*RoleMenu) error
- func (o *RoleCommand) RemoveRoleGroup(ctx context.Context, exec boil.ContextExecutor, related *RoleGroup) error
- func (o *RoleCommand) RemoveRoleGroupG(ctx context.Context, related *RoleGroup) error
- func (o *RoleCommand) RemoveRoleMenuOptions(ctx context.Context, exec boil.ContextExecutor, related ...*RoleMenuOption) error
- func (o *RoleCommand) RemoveRoleMenuOptionsG(ctx context.Context, related ...*RoleMenuOption) error
- func (o *RoleCommand) RoleGroup(mods ...qm.QueryMod) roleGroupQuery
- func (o *RoleCommand) RoleMenuOptions(mods ...qm.QueryMod) roleMenuOptionQuery
- func (o *RoleCommand) SetNextRoleCommandRoleMenus(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *RoleCommand) SetNextRoleCommandRoleMenusG(ctx context.Context, insert bool, related ...*RoleMenu) error
- func (o *RoleCommand) SetRoleGroup(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *RoleCommand) SetRoleGroupG(ctx context.Context, insert bool, related *RoleGroup) error
- func (o *RoleCommand) SetRoleMenuOptions(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *RoleCommand) SetRoleMenuOptionsG(ctx context.Context, insert bool, related ...*RoleMenuOption) error
- func (o *RoleCommand) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *RoleCommand) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *RoleCommand) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *RoleCommand) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type RoleCommandSlice
- func (o RoleCommandSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o RoleCommandSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *RoleCommandSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *RoleCommandSlice) ReloadAllG(ctx context.Context) error
- func (o RoleCommandSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o RoleCommandSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type RoleGroup
- func (o *RoleGroup) AddRoleCommands(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *RoleGroup) AddRoleCommandsG(ctx context.Context, insert bool, related ...*RoleCommand) error
- func (o *RoleGroup) AddRoleMenus(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *RoleGroup) AddRoleMenusG(ctx context.Context, insert bool, related ...*RoleMenu) error
- func (o *RoleGroup) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *RoleGroup) DeleteG(ctx context.Context) (int64, error)
- func (o *RoleGroup) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *RoleGroup) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *RoleGroup) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *RoleGroup) ReloadG(ctx context.Context) error
- func (o *RoleGroup) RemoveRoleCommands(ctx context.Context, exec boil.ContextExecutor, related ...*RoleCommand) error
- func (o *RoleGroup) RemoveRoleCommandsG(ctx context.Context, related ...*RoleCommand) error
- func (o *RoleGroup) RemoveRoleMenus(ctx context.Context, exec boil.ContextExecutor, related ...*RoleMenu) error
- func (o *RoleGroup) RemoveRoleMenusG(ctx context.Context, related ...*RoleMenu) error
- func (o *RoleGroup) RoleCommands(mods ...qm.QueryMod) roleCommandQuery
- func (o *RoleGroup) RoleMenus(mods ...qm.QueryMod) roleMenuQuery
- func (o *RoleGroup) SetRoleCommands(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *RoleGroup) SetRoleCommandsG(ctx context.Context, insert bool, related ...*RoleCommand) error
- func (o *RoleGroup) SetRoleMenus(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *RoleGroup) SetRoleMenusG(ctx context.Context, insert bool, related ...*RoleMenu) error
- func (o *RoleGroup) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *RoleGroup) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *RoleGroup) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *RoleGroup) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type RoleGroupSlice
- func (o RoleGroupSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o RoleGroupSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *RoleGroupSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *RoleGroupSlice) ReloadAllG(ctx context.Context) error
- func (o RoleGroupSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o RoleGroupSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type RoleMenu
- func (o *RoleMenu) AddRoleMenuOptions(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *RoleMenu) AddRoleMenuOptionsG(ctx context.Context, insert bool, related ...*RoleMenuOption) error
- func (o *RoleMenu) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *RoleMenu) DeleteG(ctx context.Context) (int64, error)
- func (o *RoleMenu) EditingOption(mods ...qm.QueryMod) roleMenuOptionQuery
- func (o *RoleMenu) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *RoleMenu) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *RoleMenu) NextRoleCommand(mods ...qm.QueryMod) roleCommandQuery
- func (o *RoleMenu) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *RoleMenu) ReloadG(ctx context.Context) error
- func (o *RoleMenu) RemoveEditingOption(ctx context.Context, exec boil.ContextExecutor, related *RoleMenuOption) error
- func (o *RoleMenu) RemoveEditingOptionG(ctx context.Context, related *RoleMenuOption) error
- func (o *RoleMenu) RemoveNextRoleCommand(ctx context.Context, exec boil.ContextExecutor, related *RoleCommand) error
- func (o *RoleMenu) RemoveNextRoleCommandG(ctx context.Context, related *RoleCommand) error
- func (o *RoleMenu) RemoveRoleGroup(ctx context.Context, exec boil.ContextExecutor, related *RoleGroup) error
- func (o *RoleMenu) RemoveRoleGroupG(ctx context.Context, related *RoleGroup) error
- func (o *RoleMenu) RoleGroup(mods ...qm.QueryMod) roleGroupQuery
- func (o *RoleMenu) RoleMenuOptions(mods ...qm.QueryMod) roleMenuOptionQuery
- func (o *RoleMenu) SetEditingOption(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *RoleMenu) SetEditingOptionG(ctx context.Context, insert bool, related *RoleMenuOption) error
- func (o *RoleMenu) SetNextRoleCommand(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *RoleMenu) SetNextRoleCommandG(ctx context.Context, insert bool, related *RoleCommand) error
- func (o *RoleMenu) SetRoleGroup(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *RoleMenu) SetRoleGroupG(ctx context.Context, insert bool, related *RoleGroup) error
- func (o *RoleMenu) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *RoleMenu) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *RoleMenu) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *RoleMenu) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type RoleMenuOption
- func (o *RoleMenuOption) AddEditingOptionRoleMenus(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *RoleMenuOption) AddEditingOptionRoleMenusG(ctx context.Context, insert bool, related ...*RoleMenu) error
- func (o *RoleMenuOption) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *RoleMenuOption) DeleteG(ctx context.Context) (int64, error)
- func (o *RoleMenuOption) EditingOptionRoleMenus(mods ...qm.QueryMod) roleMenuQuery
- func (o *RoleMenuOption) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *RoleMenuOption) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *RoleMenuOption) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *RoleMenuOption) ReloadG(ctx context.Context) error
- func (o *RoleMenuOption) RemoveEditingOptionRoleMenus(ctx context.Context, exec boil.ContextExecutor, related ...*RoleMenu) error
- func (o *RoleMenuOption) RemoveEditingOptionRoleMenusG(ctx context.Context, related ...*RoleMenu) error
- func (o *RoleMenuOption) RemoveRoleCommand(ctx context.Context, exec boil.ContextExecutor, related *RoleCommand) error
- func (o *RoleMenuOption) RemoveRoleCommandG(ctx context.Context, related *RoleCommand) error
- func (o *RoleMenuOption) RoleCommand(mods ...qm.QueryMod) roleCommandQuery
- func (o *RoleMenuOption) RoleMenu(mods ...qm.QueryMod) roleMenuQuery
- func (o *RoleMenuOption) SetEditingOptionRoleMenus(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *RoleMenuOption) SetEditingOptionRoleMenusG(ctx context.Context, insert bool, related ...*RoleMenu) error
- func (o *RoleMenuOption) SetRoleCommand(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *RoleMenuOption) SetRoleCommandG(ctx context.Context, insert bool, related *RoleCommand) error
- func (o *RoleMenuOption) SetRoleMenu(ctx context.Context, exec boil.ContextExecutor, insert bool, related *RoleMenu) error
- func (o *RoleMenuOption) SetRoleMenuG(ctx context.Context, insert bool, related *RoleMenu) error
- func (o *RoleMenuOption) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *RoleMenuOption) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *RoleMenuOption) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *RoleMenuOption) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type RoleMenuOptionSlice
- func (o RoleMenuOptionSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o RoleMenuOptionSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *RoleMenuOptionSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *RoleMenuOptionSlice) ReloadAllG(ctx context.Context) error
- func (o RoleMenuOptionSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o RoleMenuOptionSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type RoleMenuSlice
- func (o RoleMenuSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o RoleMenuSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *RoleMenuSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *RoleMenuSlice) ReloadAllG(ctx context.Context) error
- func (o RoleMenuSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o RoleMenuSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
Constants ¶
This section is empty.
Variables ¶
var ErrSyncFail = errors.New("models: failed to synchronize data after insert")
ErrSyncFail occurs during insert when the record could not be retrieved in order to populate default value information. This usually happens when LastInsertId fails or there was a primary key configuration that was not resolvable.
var 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", }
var RoleCommandRels = struct { RoleGroup string RoleMenuOptions string NextRoleCommandRoleMenus string }{ RoleGroup: "RoleGroup", RoleMenuOptions: "RoleMenuOptions", NextRoleCommandRoleMenus: "NextRoleCommandRoleMenus", }
RoleCommandRels is where relationship names are stored.
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 */}, }
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", }
var RoleGroupRels = struct { RoleCommands string RoleMenus string }{ RoleCommands: "RoleCommands", RoleMenus: "RoleMenus", }
RoleGroupRels is where relationship names are stored.
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 */}, }
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 EditingOptionID string SetupMSGID 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", EditingOptionID: "editing_option_id", SetupMSGID: "setup_msg_id", }
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", }
var RoleMenuOptionRels = struct { RoleCommand string RoleMenu string EditingOptionRoleMenus string }{ RoleCommand: "RoleCommand", RoleMenu: "RoleMenu", EditingOptionRoleMenus: "EditingOptionRoleMenus", }
RoleMenuOptionRels is where relationship names are stored.
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 */}, }
var RoleMenuRels = struct { NextRoleCommand string RoleGroup string EditingOption string RoleMenuOptions string }{ NextRoleCommand: "NextRoleCommand", RoleGroup: "RoleGroup", EditingOption: "EditingOption", RoleMenuOptions: "RoleMenuOptions", }
RoleMenuRels is where relationship names are stored.
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 EditingOptionID whereHelpernull_Int64 SetupMSGID whereHelperint64 }{ 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 */}, EditingOptionID: whereHelpernull_Int64{/* contains filtered or unexported fields */}, SetupMSGID: whereHelperint64{/* contains filtered or unexported fields */}, }
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 RoleCommandExists ¶
RoleCommandExists checks if the RoleCommand row exists.
func RoleCommandExistsG ¶
RoleCommandExistsG checks if the RoleCommand row exists.
func RoleCommands ¶
RoleCommands retrieves all the records using an executor.
func RoleGroupExists ¶
RoleGroupExists checks if the RoleGroup row exists.
func RoleGroupExistsG ¶
RoleGroupExistsG checks if the RoleGroup row exists.
func RoleGroups ¶
RoleGroups retrieves all the records using an executor.
func RoleMenuExists ¶
RoleMenuExists checks if the RoleMenu row exists.
func RoleMenuExistsG ¶
RoleMenuExistsG checks if the RoleMenu row exists.
func RoleMenuOptionExists ¶
RoleMenuOptionExists checks if the RoleMenuOption row exists.
func RoleMenuOptionExistsG ¶
RoleMenuOptionExistsG checks if the RoleMenuOption row exists.
func RoleMenuOptions ¶
RoleMenuOptions 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 ¶
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 ¶
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 ¶
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 ¶
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.
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
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 ¶
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 ¶
RoleCommands retrieves all the role_command's RoleCommands 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 ¶
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 ¶
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.
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 ¶
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"` EditingOptionID null.Int64 `boil:"editing_option_id" json:"editing_option_id,omitempty" toml:"editing_option_id" yaml:"editing_option_id,omitempty"` SetupMSGID int64 `boil:"setup_msg_id" json:"setup_msg_id" toml:"setup_msg_id" yaml:"setup_msg_id"` 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 ¶
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 ¶
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 ¶
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
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) NextRoleCommand ¶
NextRoleCommand pointed to by the foreign key.
func (*RoleMenu) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
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 ¶
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) RoleMenuOptions ¶
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 ¶
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 ¶
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.
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 ¶
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 ¶
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 ¶
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.
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(ctx context.Context, exec boil.ContextExecutor) (int64, error)
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 ¶
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 ¶
UpdateAllG updates all rows with the specified column values.