Documentation ¶
Index ¶
- Variables
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func TimezoneGuildConfigExists(ctx context.Context, exec boil.ContextExecutor, guildID int64) (bool, error)
- func TimezoneGuildConfigExistsG(ctx context.Context, guildID int64) (bool, error)
- func TimezoneGuildConfigs(mods ...qm.QueryMod) timezoneGuildConfigQuery
- func UserTimezoneExists(ctx context.Context, exec boil.ContextExecutor, userID int64) (bool, error)
- func UserTimezoneExistsG(ctx context.Context, userID int64) (bool, error)
- func UserTimezones(mods ...qm.QueryMod) userTimezoneQuery
- type M
- type TimezoneGuildConfig
- func (o *TimezoneGuildConfig) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *TimezoneGuildConfig) DeleteG(ctx context.Context) (int64, error)
- func (o *TimezoneGuildConfig) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *TimezoneGuildConfig) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *TimezoneGuildConfig) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *TimezoneGuildConfig) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *TimezoneGuildConfig) ReloadG(ctx context.Context) error
- func (o *TimezoneGuildConfig) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *TimezoneGuildConfig) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *TimezoneGuildConfig) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *TimezoneGuildConfig) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type TimezoneGuildConfigSlice
- func (o TimezoneGuildConfigSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o TimezoneGuildConfigSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *TimezoneGuildConfigSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *TimezoneGuildConfigSlice) ReloadAllG(ctx context.Context) error
- func (o TimezoneGuildConfigSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o TimezoneGuildConfigSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type UpsertOptionFunc
- type UpsertOptions
- type UserTimezone
- func (o *UserTimezone) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *UserTimezone) DeleteG(ctx context.Context) (int64, error)
- func (o *UserTimezone) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *UserTimezone) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *UserTimezone) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *UserTimezone) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *UserTimezone) ReloadG(ctx context.Context) error
- func (o *UserTimezone) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *UserTimezone) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *UserTimezone) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *UserTimezone) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type UserTimezoneSlice
- func (o UserTimezoneSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o UserTimezoneSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *UserTimezoneSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *UserTimezoneSlice) ReloadAllG(ctx context.Context) error
- func (o UserTimezoneSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o UserTimezoneSlice) 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 TableNames = struct { TimezoneGuildConfigs string UserTimezones string }{ TimezoneGuildConfigs: "timezone_guild_configs", UserTimezones: "user_timezones", }
var TimezoneGuildConfigColumns = struct { GuildID string DisabledInChannels string EnabledInChannels string NewChannelsDisabled string }{ GuildID: "guild_id", DisabledInChannels: "disabled_in_channels", EnabledInChannels: "enabled_in_channels", NewChannelsDisabled: "new_channels_disabled", }
var TimezoneGuildConfigRels = struct {
}{}
TimezoneGuildConfigRels is where relationship names are stored.
var TimezoneGuildConfigTableColumns = struct { GuildID string DisabledInChannels string EnabledInChannels string NewChannelsDisabled string }{ GuildID: "timezone_guild_configs.guild_id", DisabledInChannels: "timezone_guild_configs.disabled_in_channels", EnabledInChannels: "timezone_guild_configs.enabled_in_channels", NewChannelsDisabled: "timezone_guild_configs.new_channels_disabled", }
var TimezoneGuildConfigWhere = struct { GuildID whereHelperint64 DisabledInChannels whereHelpertypes_Int64Array EnabledInChannels whereHelpertypes_Int64Array NewChannelsDisabled whereHelperbool }{ GuildID: whereHelperint64{/* contains filtered or unexported fields */}, DisabledInChannels: whereHelpertypes_Int64Array{/* contains filtered or unexported fields */}, EnabledInChannels: whereHelpertypes_Int64Array{/* contains filtered or unexported fields */}, NewChannelsDisabled: whereHelperbool{/* contains filtered or unexported fields */}, }
var UserTimezoneColumns = struct { UserID string TimezoneName string }{ UserID: "user_id", TimezoneName: "timezone_name", }
var UserTimezoneRels = struct {
}{}
UserTimezoneRels is where relationship names are stored.
var UserTimezoneTableColumns = struct { UserID string TimezoneName string }{ UserID: "user_timezones.user_id", TimezoneName: "user_timezones.timezone_name", }
var UserTimezoneWhere = struct { UserID whereHelperint64 TimezoneName whereHelperstring }{ UserID: whereHelperint64{/* contains filtered or unexported fields */}, TimezoneName: whereHelperstring{/* contains filtered or unexported fields */}, }
Functions ¶
func TimezoneGuildConfigExists ¶
func TimezoneGuildConfigExists(ctx context.Context, exec boil.ContextExecutor, guildID int64) (bool, error)
TimezoneGuildConfigExists checks if the TimezoneGuildConfig row exists.
func TimezoneGuildConfigExistsG ¶
TimezoneGuildConfigExistsG checks if the TimezoneGuildConfig row exists.
func TimezoneGuildConfigs ¶
TimezoneGuildConfigs retrieves all the records using an executor.
func UserTimezoneExists ¶
UserTimezoneExists checks if the UserTimezone row exists.
func UserTimezoneExistsG ¶
UserTimezoneExistsG checks if the UserTimezone row exists.
func UserTimezones ¶
UserTimezones 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 TimezoneGuildConfig ¶
type TimezoneGuildConfig struct { GuildID int64 `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"` DisabledInChannels types.Int64Array `` /* 131-byte string literal not displayed */ EnabledInChannels types.Int64Array `` /* 127-byte string literal not displayed */ NewChannelsDisabled bool `boil:"new_channels_disabled" json:"new_channels_disabled" toml:"new_channels_disabled" yaml:"new_channels_disabled"` R *timezoneGuildConfigR `boil:"-" json:"-" toml:"-" yaml:"-"` L timezoneGuildConfigL `boil:"-" json:"-" toml:"-" yaml:"-"` }
TimezoneGuildConfig is an object representing the database table.
func FindTimezoneGuildConfig ¶
func FindTimezoneGuildConfig(ctx context.Context, exec boil.ContextExecutor, guildID int64, selectCols ...string) (*TimezoneGuildConfig, error)
FindTimezoneGuildConfig retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindTimezoneGuildConfigG ¶
func FindTimezoneGuildConfigG(ctx context.Context, guildID int64, selectCols ...string) (*TimezoneGuildConfig, error)
FindTimezoneGuildConfigG retrieves a single record by ID.
func (*TimezoneGuildConfig) Delete ¶
func (o *TimezoneGuildConfig) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single TimezoneGuildConfig record with an executor. Delete will match against the primary key column to find the record to delete.
func (*TimezoneGuildConfig) DeleteG ¶
func (o *TimezoneGuildConfig) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single TimezoneGuildConfig record. DeleteG will match against the primary key column to find the record to delete.
func (*TimezoneGuildConfig) Exists ¶ added in v2.36.0
func (o *TimezoneGuildConfig) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the TimezoneGuildConfig row exists.
func (*TimezoneGuildConfig) Insert ¶
func (o *TimezoneGuildConfig) 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 (*TimezoneGuildConfig) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*TimezoneGuildConfig) Reload ¶
func (o *TimezoneGuildConfig) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*TimezoneGuildConfig) ReloadG ¶
func (o *TimezoneGuildConfig) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*TimezoneGuildConfig) Update ¶
func (o *TimezoneGuildConfig) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the TimezoneGuildConfig. 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 (*TimezoneGuildConfig) UpdateG ¶
UpdateG a single TimezoneGuildConfig record using the global executor. See Update for more documentation.
func (*TimezoneGuildConfig) Upsert ¶
func (o *TimezoneGuildConfig) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) 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 TimezoneGuildConfigSlice ¶
type TimezoneGuildConfigSlice []*TimezoneGuildConfig
TimezoneGuildConfigSlice is an alias for a slice of pointers to TimezoneGuildConfig. This should almost always be used instead of []TimezoneGuildConfig.
func (TimezoneGuildConfigSlice) DeleteAll ¶
func (o TimezoneGuildConfigSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (TimezoneGuildConfigSlice) DeleteAllG ¶
func (o TimezoneGuildConfigSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*TimezoneGuildConfigSlice) ReloadAll ¶
func (o *TimezoneGuildConfigSlice) 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 (*TimezoneGuildConfigSlice) ReloadAllG ¶
func (o *TimezoneGuildConfigSlice) 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 (TimezoneGuildConfigSlice) UpdateAll ¶
func (o TimezoneGuildConfigSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (TimezoneGuildConfigSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.
type UpsertOptionFunc ¶ added in v2.36.0
type UpsertOptionFunc func(o *UpsertOptions)
func UpsertConflictTarget ¶ added in v2.36.0
func UpsertConflictTarget(conflictTarget string) UpsertOptionFunc
func UpsertUpdateSet ¶ added in v2.36.0
func UpsertUpdateSet(updateSet string) UpsertOptionFunc
type UpsertOptions ¶ added in v2.36.0
type UpsertOptions struct {
// contains filtered or unexported fields
}
type UserTimezone ¶
type UserTimezone struct { UserID int64 `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` TimezoneName string `boil:"timezone_name" json:"timezone_name" toml:"timezone_name" yaml:"timezone_name"` R *userTimezoneR `boil:"-" json:"-" toml:"-" yaml:"-"` L userTimezoneL `boil:"-" json:"-" toml:"-" yaml:"-"` }
UserTimezone is an object representing the database table.
func FindUserTimezone ¶
func FindUserTimezone(ctx context.Context, exec boil.ContextExecutor, userID int64, selectCols ...string) (*UserTimezone, error)
FindUserTimezone retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindUserTimezoneG ¶
func FindUserTimezoneG(ctx context.Context, userID int64, selectCols ...string) (*UserTimezone, error)
FindUserTimezoneG retrieves a single record by ID.
func (*UserTimezone) Delete ¶
func (o *UserTimezone) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single UserTimezone record with an executor. Delete will match against the primary key column to find the record to delete.
func (*UserTimezone) DeleteG ¶
func (o *UserTimezone) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single UserTimezone record. DeleteG will match against the primary key column to find the record to delete.
func (*UserTimezone) Exists ¶ added in v2.36.0
func (o *UserTimezone) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the UserTimezone row exists.
func (*UserTimezone) Insert ¶
func (o *UserTimezone) 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 (*UserTimezone) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*UserTimezone) Reload ¶
func (o *UserTimezone) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*UserTimezone) ReloadG ¶
func (o *UserTimezone) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*UserTimezone) Update ¶
func (o *UserTimezone) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the UserTimezone. 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 (*UserTimezone) UpdateG ¶
UpdateG a single UserTimezone record using the global executor. See Update for more documentation.
func (*UserTimezone) Upsert ¶
func (o *UserTimezone) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) 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 UserTimezoneSlice ¶
type UserTimezoneSlice []*UserTimezone
UserTimezoneSlice is an alias for a slice of pointers to UserTimezone. This should almost always be used instead of []UserTimezone.
func (UserTimezoneSlice) DeleteAll ¶
func (o UserTimezoneSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (UserTimezoneSlice) DeleteAllG ¶
func (o UserTimezoneSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*UserTimezoneSlice) ReloadAll ¶
func (o *UserTimezoneSlice) 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 (*UserTimezoneSlice) ReloadAllG ¶
func (o *UserTimezoneSlice) 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 (UserTimezoneSlice) UpdateAll ¶
func (o UserTimezoneSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (UserTimezoneSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.