nodedb_sql/ddl_ast/mod.rs
1//! Typed AST for NodeDB-specific DDL statements.
2//!
3//! Every DDL command the system supports is represented as a variant
4//! of [`NodedbStatement`]. The DDL router matches on this enum
5//! instead of string prefixes, so the compiler catches missing
6//! handlers when a new DDL is added.
7//!
8//! The parser ([`parse`]) converts raw SQL into a `NodedbStatement`
9//! using whitespace-split token matching — the same technique the
10//! old string-prefix router used, but producing a typed output.
11
12pub mod graph_parse;
13pub mod parse;
14pub mod statement;
15
16pub use parse::parse;
17pub use statement::{GraphDirection, GraphProperties, NodedbStatement};