nodedb-sql 0.1.1

SQL parser, planner, and optimizer for NodeDB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// SPDX-License-Identifier: Apache-2.0

//! Recursive-descent parser for NodeDB array DDL/DML.
//!
//! Recognises `CREATE ARRAY`, `DROP ARRAY`, `INSERT INTO ARRAY`, and
//! `DELETE FROM ARRAY` — non-standard syntax that sqlparser-rs cannot
//! accept. `try_parse_array_statement` returns `None` for any other
//! input so the caller can fall through to the standard sqlparser path.

pub mod ast;
pub mod lexer;
pub mod parse;

pub use ast::{
    AlterArrayAst, ArrayStatement, CreateArrayAst, DeleteArrayAst, DropArrayAst, InsertArrayAst,
};
pub use parse::try_parse_array_statement;