Skip to content

Scalars and expressions

TypeSource formRule
int42signed i64, checked arithmetic
float3.5finite f64 only
booltruecomparisons and helpers produce bool
text"hello"UTF-8
uuidtyped stringkey/index capable
bytestyped hexlowercase, even length
date@2026-09-08no implicit local time or calendar math
timestampvalue with Z or offsetexact instant
duration30secondsexact integer unit
decimal P Sdecimal "19.90"precision 1..38, never implicit rounding

Integer, float, duration, and same-type decimal operations are checked. Overflow, division by zero, or non-finite floats return E_ARITH. Decimal currently supports addition, subtraction, negation, and sum—not multiplication, division, average, or rounding.

timestamp ± duration returns a timestamp and timestamp - timestamp returns a duration. Dates do not consult a clock or local timezone.

Boolean expressions support comparisons, !, &&, ||, contains, length, option helpers, and bounded any/all. Braces delimit multiline expressions; parentheses change precedence. Collection predicates use value -> expression, never paired pipes.

Indexed byte leaves are limited to 8192 octets, complete durable index keys to 64 KiB, and ordinary typed values to 16 MiB. Violations fail atomically.

Last updated:

Released under the MIT License.