Documentation
¶
Index ¶
- Variables
- func FunSettingExists(ctx context.Context, exec boil.ContextExecutor, guildID int64) (bool, error)
- func FunSettingExistsG(ctx context.Context, guildID int64) (bool, error)
- func FunSettings(mods ...qm.QueryMod) funSettingQuery
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- type FunSetting
- func (o *FunSetting) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *FunSetting) DeleteG(ctx context.Context) (int64, error)
- func (o *FunSetting) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *FunSetting) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *FunSetting) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *FunSetting) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *FunSetting) ReloadG(ctx context.Context) error
- func (o *FunSetting) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *FunSetting) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *FunSetting) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *FunSetting) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type FunSettingSlice
- func (o FunSettingSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o FunSettingSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *FunSettingSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *FunSettingSlice) ReloadAllG(ctx context.Context) error
- func (o FunSettingSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o FunSettingSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type M
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 FunSettingColumns = struct { GuildID string Topics string NSFWTopics string DadJokes string Wyrs string NSFWWyrs string }{ GuildID: "guild_id", Topics: "topics", NSFWTopics: "nsfw_topics", DadJokes: "dad_jokes", Wyrs: "wyrs", NSFWWyrs: "nsfw_wyrs", }
var FunSettingRels = struct {
}{}
FunSettingRels is where relationship names are stored.
var FunSettingTableColumns = struct { GuildID string Topics string NSFWTopics string DadJokes string Wyrs string NSFWWyrs string }{ GuildID: "fun_settings.guild_id", Topics: "fun_settings.topics", NSFWTopics: "fun_settings.nsfw_topics", DadJokes: "fun_settings.dad_jokes", Wyrs: "fun_settings.wyrs", NSFWWyrs: "fun_settings.nsfw_wyrs", }
var FunSettingWhere = struct { GuildID whereHelperint64 Topics whereHelperstring NSFWTopics whereHelperstring DadJokes whereHelperstring Wyrs whereHelperstring NSFWWyrs whereHelperstring }{ GuildID: whereHelperint64{/* contains filtered or unexported fields */}, Topics: whereHelperstring{/* contains filtered or unexported fields */}, NSFWTopics: whereHelperstring{/* contains filtered or unexported fields */}, DadJokes: whereHelperstring{/* contains filtered or unexported fields */}, Wyrs: whereHelperstring{/* contains filtered or unexported fields */}, NSFWWyrs: whereHelperstring{/* contains filtered or unexported fields */}, }
var TableNames = struct { FunSettings string }{ FunSettings: "fun_settings", }
var ViewNames = struct {
}{}
Functions ¶
func FunSettingExists ¶
FunSettingExists checks if the FunSetting row exists.
func FunSettingExistsG ¶
FunSettingExistsG checks if the FunSetting row exists.
func FunSettings ¶
FunSettings retrieves all the records using an executor.
Types ¶
type FunSetting ¶
type FunSetting struct {
GuildID int64 `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"`
Topics string `boil:"topics" json:"topics" toml:"topics" yaml:"topics"`
NSFWTopics string `boil:"nsfw_topics" json:"nsfw_topics" toml:"nsfw_topics" yaml:"nsfw_topics"`
DadJokes string `boil:"dad_jokes" json:"dad_jokes" toml:"dad_jokes" yaml:"dad_jokes"`
Wyrs string `boil:"wyrs" json:"wyrs" toml:"wyrs" yaml:"wyrs"`
NSFWWyrs string `boil:"nsfw_wyrs" json:"nsfw_wyrs" toml:"nsfw_wyrs" yaml:"nsfw_wyrs"`
R *funSettingR `boil:"-" json:"-" toml:"-" yaml:"-"`
L funSettingL `boil:"-" json:"-" toml:"-" yaml:"-"`
}
FunSetting is an object representing the database table.
func FindFunSetting ¶
func FindFunSetting(ctx context.Context, exec boil.ContextExecutor, guildID int64, selectCols ...string) (*FunSetting, error)
FindFunSetting retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindFunSettingG ¶
FindFunSettingG retrieves a single record by ID.
func (*FunSetting) Delete ¶
func (o *FunSetting) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single FunSetting record with an executor. Delete will match against the primary key column to find the record to delete.
func (*FunSetting) DeleteG ¶
func (o *FunSetting) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single FunSetting record. DeleteG will match against the primary key column to find the record to delete.
func (*FunSetting) Exists ¶
func (o *FunSetting) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the FunSetting row exists.
func (*FunSetting) Insert ¶
func (o *FunSetting) 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 (*FunSetting) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*FunSetting) Reload ¶
func (o *FunSetting) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*FunSetting) ReloadG ¶
func (o *FunSetting) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*FunSetting) Update ¶
func (o *FunSetting) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the FunSetting. 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 (*FunSetting) UpdateG ¶
UpdateG a single FunSetting record using the global executor. See Update for more documentation.
func (*FunSetting) Upsert ¶
func (o *FunSetting) 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 FunSettingSlice ¶
type FunSettingSlice []*FunSetting
FunSettingSlice is an alias for a slice of pointers to FunSetting. This should almost always be used instead of []FunSetting.
func (FunSettingSlice) DeleteAll ¶
func (o FunSettingSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (FunSettingSlice) DeleteAllG ¶
func (o FunSettingSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*FunSettingSlice) ReloadAll ¶
func (o *FunSettingSlice) 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 (*FunSettingSlice) ReloadAllG ¶
func (o *FunSettingSlice) 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 (FunSettingSlice) UpdateAll ¶
func (o FunSettingSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (FunSettingSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.