Documentation
¶
Index ¶
- func NewWorkloader(db *sql.DB, cfg *Config) workload.Workloader
- type Config
- type Workloader
- func (w *Workloader) Check(ctx context.Context, threadID int) error
- func (w *Workloader) CheckPrepare(ctx context.Context, threadID int) error
- func (w *Workloader) Cleanup(ctx context.Context, threadID int) error
- func (w *Workloader) CleanupThread(ctx context.Context, threadID int)
- func (w *Workloader) DBName() string
- func (w *Workloader) Exec(sql string) error
- func (w *Workloader) FinishPlanReplayerDump() error
- func (w *Workloader) InitThread(ctx context.Context, threadID int) context.Context
- func (w *Workloader) IsPlanReplayerDumpEnabled() bool
- func (w *Workloader) Name() string
- func (w *Workloader) OutputStats(ifSummaryReport bool)
- func (w *Workloader) Prepare(ctx context.Context, threadID int) error
- func (w *Workloader) PreparePlanReplayerDump() error
- func (w *Workloader) Run(ctx context.Context, threadID int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWorkloader ¶
func NewWorkloader(db *sql.DB, cfg *Config) workload.Workloader
Types ¶
type Workloader ¶
type Workloader struct {
PlanReplayerRunner *replayer.PlanReplayerRunner
// contains filtered or unexported fields
}
func (*Workloader) CheckPrepare ¶
func (w *Workloader) CheckPrepare(ctx context.Context, threadID int) error
func (*Workloader) CleanupThread ¶
func (w *Workloader) CleanupThread(ctx context.Context, threadID int)
func (*Workloader) DBName ¶
func (w *Workloader) DBName() string
func (*Workloader) Exec ¶ added in v1.0.10
func (w *Workloader) Exec(sql string) error
func (*Workloader) FinishPlanReplayerDump ¶ added in v1.0.9
func (w *Workloader) FinishPlanReplayerDump() error
func (*Workloader) InitThread ¶
func (*Workloader) IsPlanReplayerDumpEnabled ¶ added in v1.0.9
func (w *Workloader) IsPlanReplayerDumpEnabled() bool
func (*Workloader) Name ¶
func (w *Workloader) Name() string
func (*Workloader) OutputStats ¶
func (w *Workloader) OutputStats(ifSummaryReport bool)
func (*Workloader) PreparePlanReplayerDump ¶ added in v1.0.9
func (w *Workloader) PreparePlanReplayerDump() error
Click to show internal directories.
Click to hide internal directories.