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 form | DmlPlan variant |
|---|---|
INSERT INTO t SELECT … | DmlPlan::InsertSelect |
INSERT INTO t … ON CONFLICT … DO UPDATE | DmlPlan::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.