SQL
Use this contract for SQL statement results. It is designed for database review and automation workflows where teams need statement parsing, lineage analysis, migration assessment, governance checks, and schema-aware documentation from a stable public contract.Top-level envelope
Document fields
Universal content/block shape
Every public content record uses the same base shape.
Common record types include
statement, entity, relationship, lineage_edge, and diagnostic.
Warnings
warningsis always present.- Use plain strings.
- Keep warnings human-readable.
- Preserve recoverable parsing notes without hiding them.
What clients can rely on
- Statement order stays stable.
- Entity, relationship, and lineage records stay distinct.
dialectand other summary values stay explicit.attributescarries SQL-specific details.- The public contract does not expose internal transport or worker details.

