Documentation ¶
Index ¶
- Variables
- func CoreConfigExists(ctx context.Context, exec boil.ContextExecutor, guildID int64) (bool, error)
- func CoreConfigExistsG(ctx context.Context, guildID int64) (bool, error)
- func CoreConfigs(mods ...qm.QueryMod) coreConfigQuery
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- type CoreConfig
- func (o *CoreConfig) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *CoreConfig) DeleteG(ctx context.Context) (int64, error)
- func (o *CoreConfig) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *CoreConfig) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *CoreConfig) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *CoreConfig) ReloadG(ctx context.Context) error
- func (o *CoreConfig) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *CoreConfig) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *CoreConfig) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *CoreConfig) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type CoreConfigSlice
- func (o CoreConfigSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o CoreConfigSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *CoreConfigSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *CoreConfigSlice) ReloadAllG(ctx context.Context) error
- func (o CoreConfigSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o CoreConfigSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type M
Constants ¶
This section is empty.
Variables ¶
var CoreConfigColumns = struct { GuildID string AllowedReadOnlyRoles string AllowedWriteRoles string AllowAllMembersReadOnly string AllowNonMembersReadOnly string }{ GuildID: "guild_id", AllowedReadOnlyRoles: "allowed_read_only_roles", AllowedWriteRoles: "allowed_write_roles", AllowAllMembersReadOnly: "allow_all_members_read_only", AllowNonMembersReadOnly: "allow_non_members_read_only", }
var CoreConfigRels = struct {
}{}
CoreConfigRels is where relationship names are stored.
var CoreConfigWhere = struct { GuildID whereHelperint64 AllowedReadOnlyRoles whereHelpertypes_Int64Array AllowedWriteRoles whereHelpertypes_Int64Array AllowAllMembersReadOnly whereHelperbool AllowNonMembersReadOnly whereHelperbool }{ GuildID: whereHelperint64{/* contains filtered or unexported fields */}, AllowedReadOnlyRoles: whereHelpertypes_Int64Array{/* contains filtered or unexported fields */}, AllowedWriteRoles: whereHelpertypes_Int64Array{/* contains filtered or unexported fields */}, AllowAllMembersReadOnly: whereHelperbool{/* contains filtered or unexported fields */}, AllowNonMembersReadOnly: whereHelperbool{/* contains filtered or unexported fields */}, }
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 TableNames = struct { CoreConfigs string }{ CoreConfigs: "core_configs", }
Functions ¶
func CoreConfigExists ¶
CoreConfigExists checks if the CoreConfig row exists.
func CoreConfigExistsG ¶
CoreConfigExistsG checks if the CoreConfig row exists.
func CoreConfigs ¶
CoreConfigs retrieves all the records using an executor.
Types ¶
type CoreConfig ¶
type CoreConfig struct { GuildID int64 `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"` AllowedReadOnlyRoles types.Int64Array `` /* 143-byte string literal not displayed */ AllowedWriteRoles types.Int64Array `` /* 127-byte string literal not displayed */ AllowAllMembersReadOnly bool `` /* 139-byte string literal not displayed */ AllowNonMembersReadOnly bool `` /* 139-byte string literal not displayed */ R *coreConfigR `boil:"-" json:"-" toml:"-" yaml:"-"` L coreConfigL `boil:"-" json:"-" toml:"-" yaml:"-"` }
CoreConfig is an object representing the database table.
func FindCoreConfig ¶
func FindCoreConfig(ctx context.Context, exec boil.ContextExecutor, guildID int64, selectCols ...string) (*CoreConfig, error)
FindCoreConfig retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindCoreConfigG ¶
FindCoreConfigG retrieves a single record by ID.
func (*CoreConfig) Delete ¶
func (o *CoreConfig) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single CoreConfig record with an executor. Delete will match against the primary key column to find the record to delete.
func (*CoreConfig) DeleteG ¶
func (o *CoreConfig) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single CoreConfig record. DeleteG will match against the primary key column to find the record to delete.
func (*CoreConfig) Insert ¶
func (o *CoreConfig) 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 (*CoreConfig) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*CoreConfig) Reload ¶
func (o *CoreConfig) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*CoreConfig) ReloadG ¶
func (o *CoreConfig) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*CoreConfig) Update ¶
func (o *CoreConfig) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the CoreConfig. 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 (*CoreConfig) UpdateG ¶
UpdateG a single CoreConfig record using the global executor. See Update for more documentation.
func (*CoreConfig) Upsert ¶
func (o *CoreConfig) 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 CoreConfigSlice ¶
type CoreConfigSlice []*CoreConfig
CoreConfigSlice is an alias for a slice of pointers to CoreConfig. This should generally be used opposed to []CoreConfig.
func (CoreConfigSlice) DeleteAll ¶
func (o CoreConfigSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (CoreConfigSlice) DeleteAllG ¶
func (o CoreConfigSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*CoreConfigSlice) ReloadAll ¶
func (o *CoreConfigSlice) 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 (*CoreConfigSlice) ReloadAllG ¶
func (o *CoreConfigSlice) 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 (CoreConfigSlice) UpdateAll ¶
func (o CoreConfigSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (CoreConfigSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.