Expand description
The SQL reference: every statement form the front door compiles, every expression it translates,
and every form it refuses — each described once here, with an example that is compiled to write
docs/reference/sql.md (what a form becomes is the compiler’s own output, and a refusal’s message
is the compiler’s own words). A test fails when the page is stale, when an example stops compiling
to the steps its form promises, or when a refused statement starts compiling.
Structs§
- Form
- A statement form the front door compiles.
- Refused
- A statement the front door refuses, and words its error must contain.
- Translation
- A SQL expression and the expression-dialect text it becomes.
Constants§
- EXPRESSIONS
- Every expression translation, in the order the reference lists them.
- FORMS
- Every form, in the order the reference lists them.
- REFUSED
- Every refused form, in the order the reference lists them.
Functions§
- dialect_
of - The expression-dialect text
sql(a scalar expression) becomes: the computed column ofINSERT INTO o SELECT <sql> AS x FROM s. - render_
markdown - The page. Each form’s steps and each refusal’s message come from compiling its example.
- steps_
of - The steps
sqlcompiles to, stage by stage (;between stages).