Skip to main content

Module schema

Module schema 

Source
Expand description

Client schema IR (SPEC.md §2.4) — the same JSON shape the conformance fixture uses (DriverSchema): tables with typed columns, a primary key, and §3.1 scope patterns ('prefix:{variable}', column defaults to the variable name).

Structs§

ClientSchema
ColumnIr
EncryptedColumn
§5.11: one encrypted column — its positional index and its app-side declared type name (string, integer, …). The wire Column.ty is bytes; this carries the pre-flip type for the encrypt/decrypt seam.
IndexIr
One local secondary index (the CREATE INDEX migration subset, §2.4).
IndexSchema
One compiled local secondary index — created on the base + visible tables.
SchemaIr
ScopePatternIr
ScopeVariable
One declared scope variable, mapped to its local column (§3.1, §3.3).
TableIr
TableSchema

Functions§

compile_schema
parse_schema_json