Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TpcState ¶
TpcState saves state for each thread
func NewTpcState ¶
NewTpcState creates a base TpcState
type Workloader ¶
type Workloader interface {
Name() string
InitThread(ctx context.Context, threadID int) context.Context
CleanupThread(ctx context.Context, threadID int)
Prepare(ctx context.Context, threadID int) error
CheckPrepare(ctx context.Context, threadID int) error
Run(ctx context.Context, threadID int) error
Cleanup(ctx context.Context, threadID int) error
Check(ctx context.Context, threadID int) error
OutputStats(ifSummaryReport bool)
DBName() string
IsPlanReplayerDumpEnabled() bool
PreparePlanReplayerDump() error
FinishPlanReplayerDump() error
Exec(sql string) error
}
Workloader is the interface for running customized workload
Click to show internal directories.
Click to hide internal directories.