CREATE TABLE
CREATE TABLE <name> (
<channel> <TYPE> [FILL HOLD|NONE] [STALENESS <duration>|INFINITE],
...
) [WITH (MUTABLE | RETENTION <duration>)];
entity and ts are implicit on every table and cannot be declared.
Types
| Accepted spellings | Stored as |
|---|---|
DOUBLE, FLOAT8, F64, REAL |
f64 |
TEXT, STRING, VARCHAR, SYMBOL |
string |
Anything else (JSONB, arrays, timestamps-as-types...) is rejected: the type system is frozen at f64 + string.
Channel attributes
FILL HOLD— state channel; last value carries forward on readsFILL NONE— event channel; never filled (default)STALENESS 60 s— withHOLD: held values older than this read asnull; defaultINFINITE
Table options
WITH (MUTABLE)— metadata table: last-write-wins per entity,DELETEallowed, no retentionWITH (RETENTION 90 d)— immutable table: day-partitions older than the window are dropped
MUTABLE and RETENTION are mutually exclusive.