models

package
v0.0.0-...-fb67095 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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",
}
View Source
var ServerStatsConfigRels = struct {
}{}

ServerStatsConfigRels is where relationship names are stored.

View Source
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",
}
View Source
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 */},
}
View Source
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",
}
View Source
var ServerStatsMemberPeriodRels = struct {
}{}

ServerStatsMemberPeriodRels is where relationship names are stored.

View Source
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",
}
View Source
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 */},
}
View Source
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",
}
View Source
var ServerStatsPeriodRels = struct {
}{}

ServerStatsPeriodRels is where relationship names are stored.

View Source
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",
}
View Source
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 */},
}
View Source
var TableNames = struct {
	ServerStatsConfigs       string
	ServerStatsMemberPeriods string
	ServerStatsPeriods       string
}{
	ServerStatsConfigs:       "server_stats_configs",
	ServerStatsMemberPeriods: "server_stats_member_periods",
	ServerStatsPeriods:       "server_stats_periods",
}

Functions

func NewQuery

func NewQuery(mods ...qm.QueryMod) *queries.Query

NewQuery initializes a new Query using the passed in QueryMods

func ServerStatsConfigExists

func ServerStatsConfigExists(ctx context.Context, exec boil.ContextExecutor, guildID int64) (bool, error)

ServerStatsConfigExists checks if the ServerStatsConfig row exists.

func ServerStatsConfigExistsG

func ServerStatsConfigExistsG(ctx context.Context, guildID int64) (bool, error)

ServerStatsConfigExistsG checks if the ServerStatsConfig row exists.

func ServerStatsConfigs

func ServerStatsConfigs(mods ...qm.QueryMod) serverStatsConfigQuery

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

func ServerStatsMemberPeriodExistsG(ctx context.Context, iD int64) (bool, error)

ServerStatsMemberPeriodExistsG checks if the ServerStatsMemberPeriod row exists.

func ServerStatsMemberPeriods

func ServerStatsMemberPeriods(mods ...qm.QueryMod) serverStatsMemberPeriodQuery

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

func ServerStatsPeriodExistsG(ctx context.Context, iD int64) (bool, error)

ServerStatsPeriodExistsG checks if the ServerStatsPeriod row exists.

func ServerStatsPeriods

func ServerStatsPeriods(mods ...qm.QueryMod) serverStatsPeriodQuery

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

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

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

func (o *ServerStatsConfig) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*ServerStatsConfig) Reload

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

func (o *ServerStatsConfig) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

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.

func (*ServerStatsConfig) UpsertG

func (o *ServerStatsConfig) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

UpsertG attempts an insert, and does an update or ignore on conflict.

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

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

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

func (o ServerStatsConfigSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

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

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

Exists checks if the ServerStatsMemberPeriod row exists.

func (*ServerStatsMemberPeriod) Insert

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*ServerStatsMemberPeriod) InsertG

func (o *ServerStatsMemberPeriod) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*ServerStatsMemberPeriod) Reload

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

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

func (o *ServerStatsMemberPeriod) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

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.

func (*ServerStatsMemberPeriod) UpsertG

func (o *ServerStatsMemberPeriod) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

UpsertG attempts an insert, and does an update or ignore on conflict.

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

DeleteAll deletes all rows in the slice, using an executor.

func (ServerStatsMemberPeriodSlice) DeleteAllG

DeleteAllG deletes all rows in the slice.

func (*ServerStatsMemberPeriodSlice) ReloadAll

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*ServerStatsMemberPeriodSlice) ReloadAllG

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

func (o ServerStatsMemberPeriodSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

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

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

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

func (o *ServerStatsPeriod) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*ServerStatsPeriod) Reload

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

func (o *ServerStatsPeriod) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

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.

func (*ServerStatsPeriod) UpsertG

func (o *ServerStatsPeriod) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

UpsertG attempts an insert, and does an update or ignore on conflict.

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

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

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

func (o ServerStatsPeriodSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type UpsertOptionFunc

type UpsertOptionFunc func(o *UpsertOptions)

func UpsertConflictTarget

func UpsertConflictTarget(conflictTarget string) UpsertOptionFunc

func UpsertUpdateSet

func UpsertUpdateSet(updateSet string) UpsertOptionFunc

type UpsertOptions

type UpsertOptions struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL