Skip to main content

parse

Function parse 

Source
pub fn parse(sql: &str) -> Option<Result<NodedbStatement, SqlError>>
Expand description

Try to parse a DDL statement from raw SQL.

Returns None for non-DDL queries (SELECT, INSERT, etc.) that should flow through the normal planner. Returns Some(Err(...)) when the SQL is structurally a DDL command but contains a reserved identifier that would be misrouted by the dispatcher.