sql-splitter 1.18.1

High-performance CLI tool for splitting large SQL dump files into individual table files
Documentation
//! Portable schema representation for synthetic data generation.
//!
//! [`crate::schema::Schema`] is a *runtime* model shaped around DDL parsing:
//! it carries dialect quirks, resolved foreign key IDs, and mutable state
//! that only matters while a dump is being read. Generation stages need
//! something calmer — a dialect-agnostic, serializable snapshot of "what a
//! table looks like" that can be written to disk, diffed, or hand-edited
//! between a schema-inspection pass and a generation pass.
//!
//! [`schema::PortableSchema`] is that snapshot. Build one from a parsed
//! [`crate::schema::Schema`] with [`schema::PortableSchema::from_runtime`].

pub mod config;
pub mod merge;
pub mod model;
pub mod overrides;
pub mod schema;

pub use config::{merge_yaml, ConfigLoader};
pub use merge::ModelMerger;
pub use model::{
    ChildDistribution, ColumnRule, FingerprintPolicy, GeneratorConfig, InferenceMode, InsertMode,
    ModelDefaults, ModelKind, ModifierConfig, OutputMode, OutputModel, PlannerConfig,
    ProfileInference, ProfileMetadata, RelationshipModel, RelationshipReference, RowsModel,
    SourceModel, SourceValueUse, SyntheticFile, SyntheticModel, TableModel, TableSeed,
    MAX_OUTPUT_BATCH_SIZE,
};
pub use overrides::{
    ColumnRuleOverride, OutputOverride, OverridesKind, PortableTableOverride, RootSeedOverride,
    RowsKind, RowsOverride, SyntheticOverrides, TableOverride, TableSeedOverride,
};
pub use schema::{PortableColumn, PortableSchema, PortableTable, SqlTypeFamily};