nodedb-sql 0.0.5

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

pub mod graph_parse;
pub mod parse;
pub mod statement;

pub use parse::parse;
pub use statement::{GraphDirection, GraphProperties, NodedbStatement};