Skip to main content

Crate sql_splitter

Crate sql_splitter 

Source
Expand description

Synthetic data generation, plus the SQL dump splitting/transform tools this crate started as.

For generating synthetic SQL data from a model, start at generate::Generate (a one-call builder) or the staged registry/compiler/engine/renderer API documented on generate.

Modules§

analyzer
SQL dump analyzer for gathering per-table statistics.
archive
Single-file archive output for split (the spool-then-pack model).
cmd
convert
Convert command for translating SQL dumps between dialects.
copy_data
Shared helpers for PostgreSQL COPY data blocks.
diagnostic
Structured diagnostics for the synthetic data generator.
differ
Diff module for comparing two SQL dumps.
duckdb
DuckDB query engine for SQL dump analytics.
generate
Synthetic data generation engine.
graph
ERD (Entity-Relationship Diagram) generation module.
json_schema
JSON Schema generation for CLI output types.
merger
Merger module for combining split SQL files back into a single dump.
parser
pk
Shared primary key hashing and formatting utilities.
profile
Bounded profiling: turn a SQL dump’s column values into fixed-size, generator-neutral evidence.
progress
Shared progress tracking utilities.
redactor
Redactor module for anonymizing sensitive data in SQL dumps.
render
Allocation-lean SQL rendering primitives.
sample
Sample command for creating reduced datasets from SQL dumps.
schema
Schema analysis module for FK-aware operations.
shard
Shard command for extracting tenant-specific data from SQL dumps.
splitter
synthetic
Portable schema representation for synthetic data generation.
transform_common
Shared plumbing for the row-level transform commands (sample, shard).
validate
Validate module for SQL dump integrity checking.
writer
Buffered file writers for splitting SQL statements into per-table files.