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) 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 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) 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 }{ GuildID: "guild_id", DisabledInChannels: "disabled_in_channels", }
var TimezoneGuildConfigRels = struct {
}{}
TimezoneGuildConfigRels is where relationship names are stored.
var TimezoneGuildConfigWhere = struct { GuildID whereHelperint64 DisabledInChannels whereHelpertypes_Int64Array }{ GuildID: whereHelperint64{/* contains filtered or unexported fields */}, DisabledInChannels: whereHelpertypes_Int64Array{/* 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 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 */ 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) 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) 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 generally be used opposed to []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 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) 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) 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 generally be used opposed to []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.