Skip to main content

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

  • warnings is 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.
  • dialect and other summary values stay explicit.
  • attributes carries SQL-specific details.
  • The public contract does not expose internal transport or worker details.

Example

Last modified on April 28, 2026