Skip to main content

Module schema

Module schema 

Source
Expand description

Dialect-agnostic, serializable schema types for synthetic data generation.

Structs§

PortableCheckConstraint
A CHECK constraint, with its raw SQL expression preserved verbatim.
PortableColumn
Portable column: everything a generation strategy needs to know about a single column, independent of the source SQL dialect.
PortableIndex
An index definition (not necessarily unique; see PortableUniqueConstraint for UNIQUE constraints).
PortableRelationship
A declared foreign-key relationship to another table, by name (not resolved to an ID, since a PortableSchema stands alone from the Schema it was built from).
PortableSchema
Dialect-agnostic snapshot of a full database schema, suitable for serialization and for driving synthetic data generation without depending on the DDL parser internals.
PortableTable
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 a BTreeMap (see PortableSchema::tables).
PortableUniqueConstraint
A table-level UNIQUE constraint, covering one or more columns.

Enums§

SqlTypeFamily
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.