Skip to main content

plan_statement

Function plan_statement 

Source
pub fn plan_statement(stmt: &Statement) -> Result<LogicalPlan, OxiSqlError>
Expand description

Transform a parsed sqlparser::ast::Statement into a LogicalPlan.

Supports SELECT (via plan_query), INSERT, UPDATE, and DELETE. All other statement types return LogicalPlan::Empty.

§Errors

Returns OxiSqlError::Parse if the statement structure is unexpected.