Documentation
¶
Overview ¶
Package workloads provides workload-owned embedded SQL, JSON, and documentation files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnknownPreset = errors.New("unknown preset")
ErrUnknownPreset is returned when an unknown preset name is requested.
Functions ¶
func AvailablePresets ¶
func AvailablePresets() []string
AvailablePresets returns registered preset names in sorted order.
func CopyPresetToPath ¶
CopyPresetToPath copies preset files to target directory.
func ReadPresetFile ¶
ReadPresetFile reads one file embedded by a workload package.
Types ¶
type PresetInfo ¶
type PresetInfo struct {
Name string `json:"name"` // e.g. "tpcc"
SQL []string `json:"sql,omitempty"` // dialect/variant stems, e.g. "pg"
Docs []string `json:"docs,omitempty"`
}
PresetInfo describes one embedded preset and its SQL dialect/variant stems and docs.
func Catalog ¶
func Catalog() ([]PresetInfo, error)
Catalog walks the embedded presets and classifies their files.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package all registers every built-in workload through blank imports.
|
Package all registers every built-in workload through blank imports. |
|
Package banking is a bank-transfer invariant workload: every transfer must preserve the total balance and the token multiset, under concurrency and injected faults.
|
Package banking is a bank-transfer invariant workload: every transfer must preserve the total balance and the token multiset, under concurrency and injected faults. |
|
published/workloadtest
Package workloadtest provides contract assertions for embedded workload assets.
|
Package workloadtest provides contract assertions for embedded workload assets. |
|
Package baseline provides Stroppy's machine-benchmark workload.
|
Package baseline provides Stroppy's machine-benchmark workload. |
|
Package execute_sql runs named queries from inline or file SQL sources.
|
Package execute_sql runs named queries from inline or file SQL sources. |
|
internal
|
|
|
workloadtest
Package workloadtest provides contract assertions for embedded workload assets.
|
Package workloadtest provides contract assertions for embedded workload assets. |
|
Package simple provides Stroppy's minimal workload example.
|
Package simple provides Stroppy's minimal workload example. |
|
Package tpcb owns Stroppy's TPC-B implementation, tests, and dialect SQL.
|
Package tpcb owns Stroppy's TPC-B implementation, tests, and dialect SQL. |
|
published/workloadtest
Package workloadtest provides contract assertions for embedded workload assets.
|
Package workloadtest provides contract assertions for embedded workload assets. |
|
Package tpcc implements the five TPC-C transactions as ordered DML steps inside driver transactions with the standard 45/43/4/4/4 mix.
|
Package tpcc implements the five TPC-C transactions as ordered DML steps inside driver transactions with the standard 45/43/4/4/4 mix. |
|
published/workloadtest
Package workloadtest provides contract assertions for embedded workload assets.
|
Package workloadtest provides contract assertions for embedded workload assets. |
|
Package tpcds owns Stroppy's TPC-DS implementation, tests, dialect SQL, and answer data.
|
Package tpcds owns Stroppy's TPC-DS implementation, tests, dialect SQL, and answer data. |
|
dsdgen
Package dsdgen is a spec-faithful Go port of the TPC-DS data generator (dsdgen, v4.0.0).
|
Package dsdgen is a spec-faithful Go port of the TPC-DS data generator (dsdgen, v4.0.0). |
|
dsqgen
Package dsqgen is a lean port of the TPC-DS query generator (dsqgen).
|
Package dsqgen is a lean port of the TPC-DS query generator (dsqgen). |
|
dsqgen/cmd/dsqgen
command
Command dsqgen renders TPC-DS query streams for a target SQL dialect, drawing valid, scale-correct parameter values with a seeded RNG (it does not reproduce the C dsqgen's exact value stream).
|
Command dsqgen renders TPC-DS query streams for a target SQL dialect, drawing valid, scale-correct parameter values with a seeded RNG (it does not reproduce the C dsqgen's exact value stream). |
|
published/source
Package source defines the row-production contract that every load-time data generator implements and every driver consumes.
|
Package source defines the row-production contract that every load-time data generator implements and every driver consumes. |
|
published/workloadtest
Package workloadtest provides contract assertions for embedded workload assets.
|
Package workloadtest provides contract assertions for embedded workload assets. |
|
tpcdsgen
Package tpcdsgen adapts the ported TPC-DS dsdgen generator (third_party/gotpcds/dsdgen) to the source.Partitionable contract, so the spec-faithful, byte-exact generator feeds any Stroppy driver through the same load path as the native evaluator and the TPC-H generator.
|
Package tpcdsgen adapts the ported TPC-DS dsdgen generator (third_party/gotpcds/dsdgen) to the source.Partitionable contract, so the spec-faithful, byte-exact generator feeds any Stroppy driver through the same load path as the native evaluator and the TPC-H generator. |
|
Package tpch owns Stroppy's TPC-H implementation, tests, dialect SQL, and answer data.
|
Package tpch owns Stroppy's TPC-H implementation, tests, dialect SQL, and answer data. |
|
published/source
Package source defines the row-production contract that every load-time data generator implements and every driver consumes.
|
Package source defines the row-production contract that every load-time data generator implements and every driver consumes. |
|
published/workloadtest
Package workloadtest provides contract assertions for embedded workload assets.
|
Package workloadtest provides contract assertions for embedded workload assets. |
|
tpchgen
Package tpchgen adapts the vendored TPC-H dbgen generator (third_party/gotpc/dbgen) to the source.Partitionable contract so the ported, spec-faithful generator can feed any Stroppy driver through the same load path as the native evaluator.
|
Package tpchgen adapts the vendored TPC-H dbgen generator (third_party/gotpc/dbgen) to the source.Partitionable contract so the ported, spec-faithful generator can feed any Stroppy driver through the same load path as the native evaluator. |
Click to show internal directories.
Click to hide internal directories.