Expand description
Top-level template parser that dispatches between macros and literal SQL.
The key insight of this parser is that SQL is treated as opaque literal text.
Only the :bind(...), :compose(...), :count(...), and :union(...)
macros are parsed; everything else passes through unchanged.
Lines or trailing portions beginning with # are template comments and are
silently stripped during parsing — they never appear in composed SQL output.
Functions§
- template
- Parse a complete template into a sequence of elements.