nodedb_sql/parser/array_stmt/mod.rs
1// SPDX-License-Identifier: Apache-2.0
2
3//! Recursive-descent parser for NodeDB array DDL/DML.
4//!
5//! Recognises `CREATE ARRAY`, `DROP ARRAY`, `INSERT INTO ARRAY`, and
6//! `DELETE FROM ARRAY` — non-standard syntax that sqlparser-rs cannot
7//! accept. `try_parse_array_statement` returns `None` for any other
8//! input so the caller can fall through to the standard sqlparser path.
9
10pub mod ast;
11pub mod lexer;
12pub mod parse;
13
14pub use ast::{
15 AlterArrayAst, ArrayStatement, CreateArrayAst, DeleteArrayAst, DropArrayAst, InsertArrayAst,
16};
17pub use parse::try_parse_array_statement;