models

package
v1.24.19 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommandsChannelsOverrideColumns = struct {
	ID                      string
	GuildID                 string
	Channels                string
	ChannelCategories       string
	Global                  string
	CommandsEnabled         string
	AutodeleteResponse      string
	AutodeleteTrigger       string
	AutodeleteResponseDelay string
	AutodeleteTriggerDelay  string
	RequireRoles            string
	IgnoreRoles             string
}{
	ID:                      "id",
	GuildID:                 "guild_id",
	Channels:                "channels",
	ChannelCategories:       "channel_categories",
	Global:                  "global",
	CommandsEnabled:         "commands_enabled",
	AutodeleteResponse:      "autodelete_response",
	AutodeleteTrigger:       "autodelete_trigger",
	AutodeleteResponseDelay: "autodelete_response_delay",
	AutodeleteTriggerDelay:  "autodelete_trigger_delay",
	RequireRoles:            "require_roles",
	IgnoreRoles:             "ignore_roles",
}
View Source
var CommandsChannelsOverrideRels = struct {
	CommandsCommandOverrides string
}{
	CommandsCommandOverrides: "CommandsCommandOverrides",
}

CommandsChannelsOverrideRels is where relationship names are stored.

View Source
var CommandsChannelsOverrideWhere = struct {
	ID                      whereHelperint64
	GuildID                 whereHelperint64
	Channels                whereHelpertypes_Int64Array
	ChannelCategories       whereHelpertypes_Int64Array
	Global                  whereHelperbool
	CommandsEnabled         whereHelperbool
	AutodeleteResponse      whereHelperbool
	AutodeleteTrigger       whereHelperbool
	AutodeleteResponseDelay whereHelperint
	AutodeleteTriggerDelay  whereHelperint
	RequireRoles            whereHelpertypes_Int64Array
	IgnoreRoles             whereHelpertypes_Int64Array
}{
	ID:                      whereHelperint64{/* contains filtered or unexported fields */},
	GuildID:                 whereHelperint64{/* contains filtered or unexported fields */},
	Channels:                whereHelpertypes_Int64Array{/* contains filtered or unexported fields */},
	ChannelCategories:       whereHelpertypes_Int64Array{/* contains filtered or unexported fields */},
	Global:                  whereHelperbool{/* contains filtered or unexported fields */},
	CommandsEnabled:         whereHelperbool{/* contains filtered or unexported fields */},
	AutodeleteResponse:      whereHelperbool{/* contains filtered or unexported fields */},
	AutodeleteTrigger:       whereHelperbool{/* contains filtered or unexported fields */},
	AutodeleteResponseDelay: whereHelperint{/* contains filtered or unexported fields */},
	AutodeleteTriggerDelay:  whereHelperint{/* contains filtered or unexported fields */},
	RequireRoles:            whereHelpertypes_Int64Array{/* contains filtered or unexported fields */},
	IgnoreRoles:             whereHelpertypes_Int64Array{/* contains filtered or unexported fields */},
}
View Source
var CommandsCommandOverrideColumns = struct {
	ID                          string
	GuildID                     string
	CommandsChannelsOverridesID string
	Commands                    string
	CommandsEnabled             string
	AutodeleteResponse          string
	AutodeleteTrigger           string
	AutodeleteResponseDelay     string
	AutodeleteTriggerDelay      string
	RequireRoles                string
	IgnoreRoles                 string
}{
	ID:                          "id",
	GuildID:                     "guild_id",
	CommandsChannelsOverridesID: "commands_channels_overrides_id",
	Commands:                    "commands",
	CommandsEnabled:             "commands_enabled",
	AutodeleteResponse:          "autodelete_response",
	AutodeleteTrigger:           "autodelete_trigger",
	AutodeleteResponseDelay:     "autodelete_response_delay",
	AutodeleteTriggerDelay:      "autodelete_trigger_delay",
	RequireRoles:                "require_roles",
	IgnoreRoles:                 "ignore_roles",
}
View Source
var CommandsCommandOverrideRels = struct {
	CommandsChannelsOverride string
}{
	CommandsChannelsOverride: "CommandsChannelsOverride",
}

CommandsCommandOverrideRels is where relationship names are stored.

View Source
var CommandsCommandOverrideWhere = struct {
	ID                          whereHelperint64
	GuildID                     whereHelperint64
	CommandsChannelsOverridesID whereHelperint64
	Commands                    whereHelpertypes_StringArray
	CommandsEnabled             whereHelperbool
	AutodeleteResponse          whereHelperbool
	AutodeleteTrigger           whereHelperbool
	AutodeleteResponseDelay     whereHelperint
	AutodeleteTriggerDelay      whereHelperint
	RequireRoles                whereHelpertypes_Int64Array
	IgnoreRoles                 whereHelpertypes_Int64Array
}{
	ID:                          whereHelperint64{/* contains filtered or unexported fields */},
	GuildID:                     whereHelperint64{/* contains filtered or unexported fields */},
	CommandsChannelsOverridesID: whereHelperint64{/* contains filtered or unexported fields */},
	Commands:                    whereHelpertypes_StringArray{/* contains filtered or unexported fields */},
	CommandsEnabled:             whereHelperbool{/* contains filtered or unexported fields */},
	AutodeleteResponse:          whereHelperbool{/* contains filtered or unexported fields */},
	AutodeleteTrigger:           whereHelperbool{/* contains filtered or unexported fields */},
	AutodeleteResponseDelay:     whereHelperint{/* contains filtered or unexported fields */},
	AutodeleteTriggerDelay:      whereHelperint{/* contains filtered or unexported fields */},
	RequireRoles:                whereHelpertypes_Int64Array{/* contains filtered or unexported fields */},
	IgnoreRoles:                 whereHelpertypes_Int64Array{/* contains filtered or unexported fields */},
}
View Source
var ErrSyncFail = errors.New("models: failed to synchronize data after insert")

ErrSyncFail occurs during insert when the record could not be retrieved in order to populate default value information. This usually happens when LastInsertId fails or there was a primary key configuration that was not resolvable.

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

Functions

func CommandsChannelsOverrideExists

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

CommandsChannelsOverrideExists checks if the CommandsChannelsOverride row exists.

func CommandsChannelsOverrideExistsG

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

CommandsChannelsOverrideExistsG checks if the CommandsChannelsOverride row exists.

func CommandsChannelsOverrides

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

CommandsChannelsOverrides retrieves all the records using an executor.

func CommandsCommandOverrideExists

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

CommandsCommandOverrideExists checks if the CommandsCommandOverride row exists.

func CommandsCommandOverrideExistsG

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

CommandsCommandOverrideExistsG checks if the CommandsCommandOverride row exists.

func CommandsCommandOverrides

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

CommandsCommandOverrides retrieves all the records using an executor.

func NewQuery

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

NewQuery initializes a new Query using the passed in QueryMods

Types

type CommandsChannelsOverride

type CommandsChannelsOverride struct {
	ID                      int64            `boil:"id" json:"id" toml:"id" yaml:"id"`
	GuildID                 int64            `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"`
	Channels                types.Int64Array `boil:"channels" json:"channels,omitempty" toml:"channels" yaml:"channels,omitempty"`
	ChannelCategories       types.Int64Array `boil:"channel_categories" json:"channel_categories,omitempty" toml:"channel_categories" yaml:"channel_categories,omitempty"`
	Global                  bool             `boil:"global" json:"global" toml:"global" yaml:"global"`
	CommandsEnabled         bool             `boil:"commands_enabled" json:"commands_enabled" toml:"commands_enabled" yaml:"commands_enabled"`
	AutodeleteResponse      bool             `boil:"autodelete_response" json:"autodelete_response" toml:"autodelete_response" yaml:"autodelete_response"`
	AutodeleteTrigger       bool             `boil:"autodelete_trigger" json:"autodelete_trigger" toml:"autodelete_trigger" yaml:"autodelete_trigger"`
	AutodeleteResponseDelay int              `` /* 131-byte string literal not displayed */
	AutodeleteTriggerDelay  int              `` /* 127-byte string literal not displayed */
	RequireRoles            types.Int64Array `boil:"require_roles" json:"require_roles" toml:"require_roles" yaml:"require_roles"`
	IgnoreRoles             types.Int64Array `boil:"ignore_roles" json:"ignore_roles" toml:"ignore_roles" yaml:"ignore_roles"`

	R *commandsChannelsOverrideR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L commandsChannelsOverrideL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

CommandsChannelsOverride is an object representing the database table.

func FindCommandsChannelsOverride

func FindCommandsChannelsOverride(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*CommandsChannelsOverride, error)

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

func FindCommandsChannelsOverrideG

func FindCommandsChannelsOverrideG(ctx context.Context, iD int64, selectCols ...string) (*CommandsChannelsOverride, error)

FindCommandsChannelsOverrideG retrieves a single record by ID.

func (*CommandsChannelsOverride) AddCommandsCommandOverrides

func (o *CommandsChannelsOverride) AddCommandsCommandOverrides(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*CommandsCommandOverride) error

AddCommandsCommandOverrides adds the given related objects to the existing relationships of the commands_channels_override, optionally inserting them as new records. Appends related to o.R.CommandsCommandOverrides. Sets related.R.CommandsChannelsOverride appropriately.

func (*CommandsChannelsOverride) AddCommandsCommandOverridesG

func (o *CommandsChannelsOverride) AddCommandsCommandOverridesG(ctx context.Context, insert bool, related ...*CommandsCommandOverride) error

AddCommandsCommandOverridesG adds the given related objects to the existing relationships of the commands_channels_override, optionally inserting them as new records. Appends related to o.R.CommandsCommandOverrides. Sets related.R.CommandsChannelsOverride appropriately. Uses the global database handle.

func (*CommandsChannelsOverride) CommandsCommandOverrides

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

CommandsCommandOverrides retrieves all the commands_command_override's CommandsCommandOverrides with an executor.

func (*CommandsChannelsOverride) Delete

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

func (*CommandsChannelsOverride) DeleteG

func (o *CommandsChannelsOverride) DeleteG(ctx context.Context) (int64, error)

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

func (*CommandsChannelsOverride) Insert

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

func (*CommandsChannelsOverride) InsertG

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

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

func (*CommandsChannelsOverride) Reload

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

func (*CommandsChannelsOverride) ReloadG

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

func (*CommandsChannelsOverride) Update

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

func (*CommandsChannelsOverride) UpdateG

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

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

func (*CommandsChannelsOverride) Upsert

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

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

func (*CommandsChannelsOverride) UpsertG

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

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

type CommandsChannelsOverrideSlice

type CommandsChannelsOverrideSlice []*CommandsChannelsOverride

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

func (CommandsChannelsOverrideSlice) DeleteAll

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

func (CommandsChannelsOverrideSlice) DeleteAllG

DeleteAllG deletes all rows in the slice.

func (*CommandsChannelsOverrideSlice) ReloadAll

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

func (*CommandsChannelsOverrideSlice) ReloadAllG

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

func (CommandsChannelsOverrideSlice) UpdateAll

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

func (CommandsChannelsOverrideSlice) UpdateAllG

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

UpdateAllG updates all rows with the specified column values.

type CommandsCommandOverride

type CommandsCommandOverride struct {
	ID                          int64             `boil:"id" json:"id" toml:"id" yaml:"id"`
	GuildID                     int64             `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"`
	CommandsChannelsOverridesID int64             `` /* 151-byte string literal not displayed */
	Commands                    types.StringArray `boil:"commands" json:"commands" toml:"commands" yaml:"commands"`
	CommandsEnabled             bool              `boil:"commands_enabled" json:"commands_enabled" toml:"commands_enabled" yaml:"commands_enabled"`
	AutodeleteResponse          bool              `boil:"autodelete_response" json:"autodelete_response" toml:"autodelete_response" yaml:"autodelete_response"`
	AutodeleteTrigger           bool              `boil:"autodelete_trigger" json:"autodelete_trigger" toml:"autodelete_trigger" yaml:"autodelete_trigger"`
	AutodeleteResponseDelay     int               `` /* 131-byte string literal not displayed */
	AutodeleteTriggerDelay      int               `` /* 127-byte string literal not displayed */
	RequireRoles                types.Int64Array  `boil:"require_roles" json:"require_roles" toml:"require_roles" yaml:"require_roles"`
	IgnoreRoles                 types.Int64Array  `boil:"ignore_roles" json:"ignore_roles" toml:"ignore_roles" yaml:"ignore_roles"`

	R *commandsCommandOverrideR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L commandsCommandOverrideL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

CommandsCommandOverride is an object representing the database table.

func FindCommandsCommandOverride

func FindCommandsCommandOverride(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*CommandsCommandOverride, error)

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

func FindCommandsCommandOverrideG

func FindCommandsCommandOverrideG(ctx context.Context, iD int64, selectCols ...string) (*CommandsCommandOverride, error)

FindCommandsCommandOverrideG retrieves a single record by ID.

func (*CommandsCommandOverride) CommandsChannelsOverride

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

CommandsChannelsOverride pointed to by the foreign key.

func (*CommandsCommandOverride) Delete

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

func (*CommandsCommandOverride) DeleteG

func (o *CommandsCommandOverride) DeleteG(ctx context.Context) (int64, error)

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

func (*CommandsCommandOverride) Insert

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

func (*CommandsCommandOverride) InsertG

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

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

func (*CommandsCommandOverride) Reload

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

func (*CommandsCommandOverride) ReloadG

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

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

func (*CommandsCommandOverride) SetCommandsChannelsOverride

func (o *CommandsCommandOverride) SetCommandsChannelsOverride(ctx context.Context, exec boil.ContextExecutor, insert bool, related *CommandsChannelsOverride) error

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

func (*CommandsCommandOverride) SetCommandsChannelsOverrideG

func (o *CommandsCommandOverride) SetCommandsChannelsOverrideG(ctx context.Context, insert bool, related *CommandsChannelsOverride) error

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

func (*CommandsCommandOverride) Update

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

func (*CommandsCommandOverride) UpdateG

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

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

func (*CommandsCommandOverride) Upsert

func (o *CommandsCommandOverride) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) 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 (*CommandsCommandOverride) UpsertG

func (o *CommandsCommandOverride) 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 CommandsCommandOverrideSlice

type CommandsCommandOverrideSlice []*CommandsCommandOverride

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

func (CommandsCommandOverrideSlice) DeleteAll

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

func (CommandsCommandOverrideSlice) DeleteAllG

DeleteAllG deletes all rows in the slice.

func (*CommandsCommandOverrideSlice) ReloadAll

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

func (*CommandsCommandOverrideSlice) ReloadAllG

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

func (CommandsCommandOverrideSlice) UpdateAll

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

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

func (CommandsCommandOverrideSlice) UpdateAllG

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

UpdateAllG updates all rows with the specified column values.

type M

type M map[string]interface{}

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

Jump to

Keyboard shortcuts

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