Commit 87926fc
committed
feat(nodedb-sql): add typed DDL AST module
Introduce `nodedb_sql::ddl_ast` — a typed representation of every
NodeDB DDL statement as `NodedbStatement` enum variants, with a
whitespace-token parser that converts raw SQL into the typed form.
The AST gives DDL dispatch a compiler-checked match instead of
string-prefix branching, so adding a new DDL command forces handling
in every affected site at compile time rather than at runtime.1 parent 6da002f commit 87926fc
4 files changed
Lines changed: 900 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
0 commit comments