TABLE.DECLAREDeclare a relational table that compiles at declare time into named indexes (catalog mutation, sidecar-persisted).
| 構文 | TABLE.DECLARE name PREFIX prefix PK col COLUMN name i64|f64|str [COLUMN ...] [INDEX col range|unique [VALUES col ...]] [ORDERPATH name ON col [DESC] [THEN col [DESC]] ...] [WINDOW col SPAN n BUCKET n] [AUTODECLARE n] |
| グループ | table |
| 引数の数 | -9 |
| 導入バージョン | 4.0.0 |
| フラグ | write, extension |
| 計算量 | O(declaration size) at the call; each compiled index then backfills like IDX.CREATE (2048 rows per tick per shard). The engine gains no query planner: queries name the compiled paths (`<table>.<col>`, `<table>.<orderpath>`) explicitly |
| Redis 互換性 | kevy-only: nearest is CREATE TABLE in an RDBMS — but this is a declaration compiler, not a schema enforcer: a row with a missing column is a row with an absent field (NULL semantics), never an error, and no SQL executes at query time |