Expand description
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.
Re-exports§
pub use config::merge_yaml;pub use config::ConfigLoader;pub use merge::ModelMerger;pub use model::ChildDistribution;pub use model::ColumnRule;pub use model::FingerprintPolicy;pub use model::GeneratorConfig;pub use model::InferenceMode;pub use model::InsertMode;pub use model::ModelDefaults;pub use model::ModelKind;pub use model::ModifierConfig;pub use model::OutputMode;pub use model::OutputModel;pub use model::PlannerConfig;pub use model::ProfileInference;pub use model::ProfileMetadata;pub use model::RelationshipModel;pub use model::RelationshipReference;pub use model::RowsModel;pub use model::SourceModel;pub use model::SourceValueUse;pub use model::SyntheticFile;pub use model::SyntheticModel;pub use model::TableModel;pub use model::TableSeed;pub use model::MAX_OUTPUT_BATCH_SIZE;pub use overrides::ColumnRuleOverride;pub use overrides::OutputOverride;pub use overrides::OverridesKind;pub use overrides::PortableTableOverride;pub use overrides::RootSeedOverride;pub use overrides::RowsKind;pub use overrides::RowsOverride;pub use overrides::SyntheticOverrides;pub use overrides::TableOverride;pub use overrides::TableSeedOverride;pub use schema::PortableColumn;pub use schema::PortableSchema;pub use schema::PortableTable;pub use schema::SqlTypeFamily;
Modules§
- config
- Loads a
model/overridesdocument together with its local imports. - merge
- Merges a base
modelwith a typedoverridespatch into a complete candidateSyntheticModel. - model
- The
kind: modelYAML document: a self-contained synthetic data model. - overrides
- The
kind: overridesYAML document: a partial patch applied on top of a source dump or a basemodel. - schema
- Dialect-agnostic, serializable schema types for synthetic data generation.