Skip to main content

Module tables

Module tables 

Source
Expand description

Knowledge-base tables, lazily initialised on first use.

Each sub-module owns one table:

  • [keywords] – SQL keywords (SELECT, FROM, …).
  • [types] – data types (UUID, TIMESTAMPTZ, …).
  • [functions] – built-in functions (count, now, gen_random_uuid, …).

Each table is keyed by canonical case: keywords + types use uppercase, functions use lowercase. The lookup helper tries all three.

Modules§

functions
SQL built-in function table. Append new functions with the f! macro.
keywords
sequence below.
types
SQL data type table. Append new types with the t! macro.

Functions§

functions
keywords
lookup
Try keyword (uppercase), then type (uppercase), then function (lowercase). Returns the first match.
types