Skip to main content

Module dml

Module dml 

Source
Expand description

DML planning helpers.

Converts sqlparser DML Statements into a high-level DmlPlan that the rest of OxiSQL can reason about without depending on sqlparser’s AST directly.

§Supported statements

SQL formDmlPlan variant
INSERT INTO t SELECT …DmlPlan::InsertSelect
INSERT INTO t … ON CONFLICT … DO UPDATEDmlPlan::Upsert
UPDATE t SET … WHERE …DmlPlan::Update

All other statement types return None from plan_dml.

Enums§

DmlPlan
A high-level DML plan derived from a SQL statement.

Functions§

plan_dml
Convert a sqlparser Statement into a DmlPlan.