Skip to content

parser

sqllocks_spindle.schema.parser

Parse .spindle.json schema files into internal model objects.

Classes

ColumnDef dataclass

Definition of a single column in a table.

TableDef dataclass

Definition of a single table.

RelationshipDef dataclass

Definition of a relationship between tables.

BusinessRuleDef dataclass

Definition of a business rule / constraint.

GenerationConfig dataclass

Generation scale and output configuration.

ModelDef dataclass

Top-level model metadata.

SpindleSchema dataclass

Complete parsed schema — the internal representation of a .spindle.json file.

SchemaParser

Parse a .spindle.json file into a SpindleSchema.