Documentation ¶
Index ¶
- Variables
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func ServerStatsConfigExists(ctx context.Context, exec boil.ContextExecutor, guildID int64) (bool, error)
- func ServerStatsConfigExistsG(ctx context.Context, guildID int64) (bool, error)
- func ServerStatsConfigs(mods ...qm.QueryMod) serverStatsConfigQuery
- func ServerStatsMemberPeriodExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func ServerStatsMemberPeriodExistsG(ctx context.Context, iD int64) (bool, error)
- func ServerStatsMemberPeriods(mods ...qm.QueryMod) serverStatsMemberPeriodQuery
- func ServerStatsPeriodExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func ServerStatsPeriodExistsG(ctx context.Context, iD int64) (bool, error)
- func ServerStatsPeriods(mods ...qm.QueryMod) serverStatsPeriodQuery
- type M
- type ServerStatsConfig
- func (o *ServerStatsConfig) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ServerStatsConfig) DeleteG(ctx context.Context) (int64, error)
- func (o *ServerStatsConfig) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *ServerStatsConfig) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *ServerStatsConfig) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *ServerStatsConfig) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ServerStatsConfig) ReloadG(ctx context.Context) error
- func (o *ServerStatsConfig) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *ServerStatsConfig) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *ServerStatsConfig) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *ServerStatsConfig) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type ServerStatsConfigSlice
- func (o ServerStatsConfigSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o ServerStatsConfigSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *ServerStatsConfigSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ServerStatsConfigSlice) ReloadAllG(ctx context.Context) error
- func (o ServerStatsConfigSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o ServerStatsConfigSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type ServerStatsMemberPeriod
- func (o *ServerStatsMemberPeriod) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ServerStatsMemberPeriod) DeleteG(ctx context.Context) (int64, error)
- func (o *ServerStatsMemberPeriod) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *ServerStatsMemberPeriod) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *ServerStatsMemberPeriod) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *ServerStatsMemberPeriod) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ServerStatsMemberPeriod) ReloadG(ctx context.Context) error
- func (o *ServerStatsMemberPeriod) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *ServerStatsMemberPeriod) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *ServerStatsMemberPeriod) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *ServerStatsMemberPeriod) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type ServerStatsMemberPeriodSlice
- func (o ServerStatsMemberPeriodSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o ServerStatsMemberPeriodSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *ServerStatsMemberPeriodSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ServerStatsMemberPeriodSlice) ReloadAllG(ctx context.Context) error
- func (o ServerStatsMemberPeriodSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o ServerStatsMemberPeriodSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type ServerStatsPeriod
- func (o *ServerStatsPeriod) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ServerStatsPeriod) DeleteG(ctx context.Context) (int64, error)
- func (o *ServerStatsPeriod) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *ServerStatsPeriod) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *ServerStatsPeriod) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *ServerStatsPeriod) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ServerStatsPeriod) ReloadG(ctx context.Context) error
- func (o *ServerStatsPeriod) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *ServerStatsPeriod) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *ServerStatsPeriod) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *ServerStatsPeriod) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type ServerStatsPeriodSlice
- func (o ServerStatsPeriodSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o ServerStatsPeriodSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *ServerStatsPeriodSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ServerStatsPeriodSlice) ReloadAllG(ctx context.Context) error
- func (o ServerStatsPeriodSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o ServerStatsPeriodSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type UpsertOptionFunc
- type UpsertOptions
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 ServerStatsConfigColumns = struct { GuildID string CreatedAt string UpdatedAt string Public string IgnoreChannels string }{ GuildID: "guild_id", CreatedAt: "created_at", UpdatedAt: "updated_at", Public: "public", IgnoreChannels: "ignore_channels", }
var ServerStatsConfigRels = struct {
}{}
ServerStatsConfigRels is where relationship names are stored.
var ServerStatsConfigTableColumns = struct { GuildID string CreatedAt string UpdatedAt string Public string IgnoreChannels string }{ GuildID: "server_stats_configs.guild_id", CreatedAt: "server_stats_configs.created_at", UpdatedAt: "server_stats_configs.updated_at", Public: "server_stats_configs.public", IgnoreChannels: "server_stats_configs.ignore_channels", }
var ServerStatsConfigWhere = struct { GuildID whereHelperint64 CreatedAt whereHelpernull_Time UpdatedAt whereHelpernull_Time Public whereHelpernull_Bool IgnoreChannels whereHelpernull_String }{ GuildID: whereHelperint64{/* contains filtered or unexported fields */}, CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, Public: whereHelpernull_Bool{/* contains filtered or unexported fields */}, IgnoreChannels: whereHelpernull_String{/* contains filtered or unexported fields */}, }
var ServerStatsMemberPeriodColumns = struct { ID string GuildID string CreatedAt string NumMembers string Joins string Leaves string MaxOnline string }{ ID: "id", GuildID: "guild_id", CreatedAt: "created_at", NumMembers: "num_members", Joins: "joins", Leaves: "leaves", MaxOnline: "max_online", }
var ServerStatsMemberPeriodRels = struct {
}{}
ServerStatsMemberPeriodRels is where relationship names are stored.
var ServerStatsMemberPeriodTableColumns = struct { ID string GuildID string CreatedAt string NumMembers string Joins string Leaves string MaxOnline string }{ ID: "server_stats_member_periods.id", GuildID: "server_stats_member_periods.guild_id", CreatedAt: "server_stats_member_periods.created_at", NumMembers: "server_stats_member_periods.num_members", Joins: "server_stats_member_periods.joins", Leaves: "server_stats_member_periods.leaves", MaxOnline: "server_stats_member_periods.max_online", }
var ServerStatsMemberPeriodWhere = struct { ID whereHelperint64 GuildID whereHelperint64 CreatedAt whereHelpertime_Time NumMembers whereHelperint64 Joins whereHelperint64 Leaves whereHelperint64 MaxOnline whereHelperint64 }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, GuildID: whereHelperint64{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, NumMembers: whereHelperint64{/* contains filtered or unexported fields */}, Joins: whereHelperint64{/* contains filtered or unexported fields */}, Leaves: whereHelperint64{/* contains filtered or unexported fields */}, MaxOnline: whereHelperint64{/* contains filtered or unexported fields */}, }
var ServerStatsPeriodColumns = struct { ID string Started string Duration string GuildID string UserID string ChannelID string Count string }{ ID: "id", Started: "started", Duration: "duration", GuildID: "guild_id", UserID: "user_id", ChannelID: "channel_id", Count: "count", }
var ServerStatsPeriodRels = struct {
}{}
ServerStatsPeriodRels is where relationship names are stored.
var ServerStatsPeriodTableColumns = struct { ID string Started string Duration string GuildID string UserID string ChannelID string Count string }{ ID: "server_stats_periods.id", Started: "server_stats_periods.started", Duration: "server_stats_periods.duration", GuildID: "server_stats_periods.guild_id", UserID: "server_stats_periods.user_id", ChannelID: "server_stats_periods.channel_id", Count: "server_stats_periods.count", }
var ServerStatsPeriodWhere = struct { ID whereHelperint64 Started whereHelpernull_Time Duration whereHelpernull_Int64 GuildID whereHelpernull_Int64 UserID whereHelpernull_Int64 ChannelID whereHelpernull_Int64 Count whereHelpernull_Int64 }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, Started: whereHelpernull_Time{/* contains filtered or unexported fields */}, Duration: whereHelpernull_Int64{/* contains filtered or unexported fields */}, GuildID: whereHelpernull_Int64{/* contains filtered or unexported fields */}, UserID: whereHelpernull_Int64{/* contains filtered or unexported fields */}, ChannelID: whereHelpernull_Int64{/* contains filtered or unexported fields */}, Count: whereHelpernull_Int64{/* contains filtered or unexported fields */}, }
var TableNames = struct { ServerStatsConfigs string ServerStatsMemberPeriods string ServerStatsPeriods string }{ ServerStatsConfigs: "server_stats_configs", ServerStatsMemberPeriods: "server_stats_member_periods", ServerStatsPeriods: "server_stats_periods", }
Functions ¶
func ServerStatsConfigExists ¶
func ServerStatsConfigExists(ctx context.Context, exec boil.ContextExecutor, guildID int64) (bool, error)
ServerStatsConfigExists checks if the ServerStatsConfig row exists.
func ServerStatsConfigExistsG ¶
ServerStatsConfigExistsG checks if the ServerStatsConfig row exists.
func ServerStatsConfigs ¶
ServerStatsConfigs retrieves all the records using an executor.
func ServerStatsMemberPeriodExists ¶
func ServerStatsMemberPeriodExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
ServerStatsMemberPeriodExists checks if the ServerStatsMemberPeriod row exists.
func ServerStatsMemberPeriodExistsG ¶
ServerStatsMemberPeriodExistsG checks if the ServerStatsMemberPeriod row exists.
func ServerStatsMemberPeriods ¶
ServerStatsMemberPeriods retrieves all the records using an executor.
func ServerStatsPeriodExists ¶
func ServerStatsPeriodExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
ServerStatsPeriodExists checks if the ServerStatsPeriod row exists.
func ServerStatsPeriodExistsG ¶
ServerStatsPeriodExistsG checks if the ServerStatsPeriod row exists.
func ServerStatsPeriods ¶
ServerStatsPeriods 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 ServerStatsConfig ¶
type ServerStatsConfig struct { GuildID int64 `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"` CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"` UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"` Public null.Bool `boil:"public" json:"public,omitempty" toml:"public" yaml:"public,omitempty"` IgnoreChannels null.String `boil:"ignore_channels" json:"ignore_channels,omitempty" toml:"ignore_channels" yaml:"ignore_channels,omitempty"` R *serverStatsConfigR `boil:"-" json:"-" toml:"-" yaml:"-"` L serverStatsConfigL `boil:"-" json:"-" toml:"-" yaml:"-"` }
ServerStatsConfig is an object representing the database table.
func FindServerStatsConfig ¶
func FindServerStatsConfig(ctx context.Context, exec boil.ContextExecutor, guildID int64, selectCols ...string) (*ServerStatsConfig, error)
FindServerStatsConfig retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindServerStatsConfigG ¶
func FindServerStatsConfigG(ctx context.Context, guildID int64, selectCols ...string) (*ServerStatsConfig, error)
FindServerStatsConfigG retrieves a single record by ID.
func (*ServerStatsConfig) Delete ¶
func (o *ServerStatsConfig) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single ServerStatsConfig record with an executor. Delete will match against the primary key column to find the record to delete.
func (*ServerStatsConfig) DeleteG ¶
func (o *ServerStatsConfig) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single ServerStatsConfig record. DeleteG will match against the primary key column to find the record to delete.
func (*ServerStatsConfig) Exists ¶ added in v2.36.0
func (o *ServerStatsConfig) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the ServerStatsConfig row exists.
func (*ServerStatsConfig) Insert ¶
func (o *ServerStatsConfig) 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 (*ServerStatsConfig) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*ServerStatsConfig) Reload ¶
func (o *ServerStatsConfig) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*ServerStatsConfig) ReloadG ¶
func (o *ServerStatsConfig) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*ServerStatsConfig) Update ¶
func (o *ServerStatsConfig) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the ServerStatsConfig. 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 (*ServerStatsConfig) UpdateG ¶
UpdateG a single ServerStatsConfig record using the global executor. See Update for more documentation.
func (*ServerStatsConfig) Upsert ¶
func (o *ServerStatsConfig) 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 ServerStatsConfigSlice ¶
type ServerStatsConfigSlice []*ServerStatsConfig
ServerStatsConfigSlice is an alias for a slice of pointers to ServerStatsConfig. This should almost always be used instead of []ServerStatsConfig.
func (ServerStatsConfigSlice) DeleteAll ¶
func (o ServerStatsConfigSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (ServerStatsConfigSlice) DeleteAllG ¶
func (o ServerStatsConfigSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*ServerStatsConfigSlice) ReloadAll ¶
func (o *ServerStatsConfigSlice) 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 (*ServerStatsConfigSlice) ReloadAllG ¶
func (o *ServerStatsConfigSlice) 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 (ServerStatsConfigSlice) UpdateAll ¶
func (o ServerStatsConfigSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (ServerStatsConfigSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.
type ServerStatsMemberPeriod ¶
type ServerStatsMemberPeriod 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"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` NumMembers int64 `boil:"num_members" json:"num_members" toml:"num_members" yaml:"num_members"` Joins int64 `boil:"joins" json:"joins" toml:"joins" yaml:"joins"` Leaves int64 `boil:"leaves" json:"leaves" toml:"leaves" yaml:"leaves"` MaxOnline int64 `boil:"max_online" json:"max_online" toml:"max_online" yaml:"max_online"` R *serverStatsMemberPeriodR `boil:"-" json:"-" toml:"-" yaml:"-"` L serverStatsMemberPeriodL `boil:"-" json:"-" toml:"-" yaml:"-"` }
ServerStatsMemberPeriod is an object representing the database table.
func FindServerStatsMemberPeriod ¶
func FindServerStatsMemberPeriod(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*ServerStatsMemberPeriod, error)
FindServerStatsMemberPeriod retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindServerStatsMemberPeriodG ¶
func FindServerStatsMemberPeriodG(ctx context.Context, iD int64, selectCols ...string) (*ServerStatsMemberPeriod, error)
FindServerStatsMemberPeriodG retrieves a single record by ID.
func (*ServerStatsMemberPeriod) Delete ¶
func (o *ServerStatsMemberPeriod) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single ServerStatsMemberPeriod record with an executor. Delete will match against the primary key column to find the record to delete.
func (*ServerStatsMemberPeriod) DeleteG ¶
func (o *ServerStatsMemberPeriod) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single ServerStatsMemberPeriod record. DeleteG will match against the primary key column to find the record to delete.
func (*ServerStatsMemberPeriod) Exists ¶ added in v2.36.0
func (o *ServerStatsMemberPeriod) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the ServerStatsMemberPeriod row exists.
func (*ServerStatsMemberPeriod) Insert ¶
func (o *ServerStatsMemberPeriod) 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 (*ServerStatsMemberPeriod) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*ServerStatsMemberPeriod) Reload ¶
func (o *ServerStatsMemberPeriod) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*ServerStatsMemberPeriod) ReloadG ¶
func (o *ServerStatsMemberPeriod) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*ServerStatsMemberPeriod) Update ¶
func (o *ServerStatsMemberPeriod) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the ServerStatsMemberPeriod. 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 (*ServerStatsMemberPeriod) UpdateG ¶
UpdateG a single ServerStatsMemberPeriod record using the global executor. See Update for more documentation.
func (*ServerStatsMemberPeriod) Upsert ¶
func (o *ServerStatsMemberPeriod) 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 ServerStatsMemberPeriodSlice ¶
type ServerStatsMemberPeriodSlice []*ServerStatsMemberPeriod
ServerStatsMemberPeriodSlice is an alias for a slice of pointers to ServerStatsMemberPeriod. This should almost always be used instead of []ServerStatsMemberPeriod.
func (ServerStatsMemberPeriodSlice) DeleteAll ¶
func (o ServerStatsMemberPeriodSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (ServerStatsMemberPeriodSlice) DeleteAllG ¶
func (o ServerStatsMemberPeriodSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*ServerStatsMemberPeriodSlice) ReloadAll ¶
func (o *ServerStatsMemberPeriodSlice) 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 (*ServerStatsMemberPeriodSlice) ReloadAllG ¶
func (o *ServerStatsMemberPeriodSlice) 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 (ServerStatsMemberPeriodSlice) UpdateAll ¶
func (o ServerStatsMemberPeriodSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (ServerStatsMemberPeriodSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.
type ServerStatsPeriod ¶
type ServerStatsPeriod struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` Started null.Time `boil:"started" json:"started,omitempty" toml:"started" yaml:"started,omitempty"` Duration null.Int64 `boil:"duration" json:"duration,omitempty" toml:"duration" yaml:"duration,omitempty"` GuildID null.Int64 `boil:"guild_id" json:"guild_id,omitempty" toml:"guild_id" yaml:"guild_id,omitempty"` UserID null.Int64 `boil:"user_id" json:"user_id,omitempty" toml:"user_id" yaml:"user_id,omitempty"` ChannelID null.Int64 `boil:"channel_id" json:"channel_id,omitempty" toml:"channel_id" yaml:"channel_id,omitempty"` Count null.Int64 `boil:"count" json:"count,omitempty" toml:"count" yaml:"count,omitempty"` R *serverStatsPeriodR `boil:"-" json:"-" toml:"-" yaml:"-"` L serverStatsPeriodL `boil:"-" json:"-" toml:"-" yaml:"-"` }
ServerStatsPeriod is an object representing the database table.
func FindServerStatsPeriod ¶
func FindServerStatsPeriod(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*ServerStatsPeriod, error)
FindServerStatsPeriod retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindServerStatsPeriodG ¶
func FindServerStatsPeriodG(ctx context.Context, iD int64, selectCols ...string) (*ServerStatsPeriod, error)
FindServerStatsPeriodG retrieves a single record by ID.
func (*ServerStatsPeriod) Delete ¶
func (o *ServerStatsPeriod) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single ServerStatsPeriod record with an executor. Delete will match against the primary key column to find the record to delete.
func (*ServerStatsPeriod) DeleteG ¶
func (o *ServerStatsPeriod) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single ServerStatsPeriod record. DeleteG will match against the primary key column to find the record to delete.
func (*ServerStatsPeriod) Exists ¶ added in v2.36.0
func (o *ServerStatsPeriod) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the ServerStatsPeriod row exists.
func (*ServerStatsPeriod) Insert ¶
func (o *ServerStatsPeriod) 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 (*ServerStatsPeriod) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*ServerStatsPeriod) Reload ¶
func (o *ServerStatsPeriod) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*ServerStatsPeriod) ReloadG ¶
func (o *ServerStatsPeriod) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*ServerStatsPeriod) Update ¶
func (o *ServerStatsPeriod) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the ServerStatsPeriod. 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 (*ServerStatsPeriod) UpdateG ¶
UpdateG a single ServerStatsPeriod record using the global executor. See Update for more documentation.
func (*ServerStatsPeriod) Upsert ¶
func (o *ServerStatsPeriod) 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 ServerStatsPeriodSlice ¶
type ServerStatsPeriodSlice []*ServerStatsPeriod
ServerStatsPeriodSlice is an alias for a slice of pointers to ServerStatsPeriod. This should almost always be used instead of []ServerStatsPeriod.
func (ServerStatsPeriodSlice) DeleteAll ¶
func (o ServerStatsPeriodSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (ServerStatsPeriodSlice) DeleteAllG ¶
func (o ServerStatsPeriodSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*ServerStatsPeriodSlice) ReloadAll ¶
func (o *ServerStatsPeriodSlice) 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 (*ServerStatsPeriodSlice) ReloadAllG ¶
func (o *ServerStatsPeriodSlice) 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 (ServerStatsPeriodSlice) UpdateAll ¶
func (o ServerStatsPeriodSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (ServerStatsPeriodSlice) 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
}