You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
150321: **workload: add main orchestrator `workload.go` for end-to-end data g… r=nameisbhaskar a=Pradyum-Git
…eneration**
Previously, the workload generator package provided parsing of input DDL and metadata structs, as well as a set of pluggable generators and wrappers, but lacked a central entry point to drive the entire workflow.
This patch introduces a new `workload.go` file that serves as the main orchestrator:
* Defines the `main` function and CLI flags (e.g. `--ddl-path`, `--output-dir`, batch size, random seed).
* Invokes DDL parsing to build in-memory schema representations.
* Constructs per-table generators by calling into the existing factory and applying wrappers.
* Streams data generation for each table, writing SQL (or CSV) to the specified output.
Fixes: CRDB-51752
Release note (cli change): Adds `workload.go` as the primary CLI entry point for workload generation, wiring together DDL parsing, schema construction, generator factory, and output routines—establishing a cohesive, flag-driven workflow for end-to-end data generation.
Co-authored-by: Pradyum <[email protected]>
0 commit comments