1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! Dialect-aware SQL parsers that lower DDL into Gaman schema state.
//!
//! The parser is a schema-loading frontend, not a migration parser. It accepts
//! only `CREATE` statements for entity kinds Gaman models in `Schema`: tables,
//! columns, constraints, foreign keys, indexes, extensions, triggers, functions,
//! views, and enums. `ALTER`, `DROP`, `DELETE`, and other lifecycle or DML
//! statements must be represented as migration operations, not parsed schema
//! input.
//!
//! SQL text is segmented before AST parsing. The segmenter is dialect-aware,
//! tag-free, and independent from lowering so unsupported SQL can still be
//! isolated into statement boundaries before the downstream parser rejects it.
//!
//! This module is the only boundary that uses the `sqlparser` crate. Public
//! parser APIs expose Gaman-owned types only: `Schema`, `Dialect`,
//! `SqlSegment`, `SqlStatementKind`, and `ParseError`.
//!
//! There is no default SQL dialect at this boundary. Callers must pass the
//! dialect explicitly for parsing and segmentation.
pub
pub use ParseError;
pub use ;
pub use parse_sql;
pub use parse_sql_raw;