Expand description
Dialect-agnostic, serializable schema types for synthetic data generation.
Structs§
- Portable
Check Constraint - A CHECK constraint, with its raw SQL expression preserved verbatim.
- Portable
Column - Portable column: everything a generation strategy needs to know about a single column, independent of the source SQL dialect.
- Portable
Index - An index definition (not necessarily unique; see
PortableUniqueConstraintfor UNIQUE constraints). - Portable
Relationship - A declared foreign-key relationship to another table, by name (not
resolved to an ID, since a
PortableSchemastands alone from theSchemait was built from). - Portable
Schema - Dialect-agnostic snapshot of a full database schema, suitable for serialization and for driving synthetic data generation without depending on the DDL parser internals.
- Portable
Table - Portable table: ordered columns and constraints, plus the raw same-dialect
DDL for reference. Column and constraint order is preserved in
Vecs; only table name lookup uses aBTreeMap(seePortableSchema::tables). - Portable
Unique Constraint - A table-level UNIQUE constraint, covering one or more columns.
Enums§
- SqlType
Family - Coarse-grained classification of a SQL column type, independent of the
source dialect’s exact type name. Generation strategies key off this
instead of re-deriving it from
source_type.