Skip to main content

parse_main_statement

Function parse_main_statement 

Source
fn parse_main_statement(sql: &str) -> Result<Statement, ()>
Expand description

Parse a cached main statement SQL string into the project’s Statement enum.

Only the statement types that mz-deploy manages as database objects are accepted: views, materialized views, tables, table-from-source, sources, sinks, secrets, and connections. Any other statement type returns Err(()).