Skip to main content

Module reference

Module reference 

Source
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 of INSERT 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 sql compiles to, stage by stage (; between stages).