pub enum DmlPlan {
InsertSelect {
table: String,
columns: Vec<String>,
source: Box<LogicalPlan>,
},
Upsert {
table: String,
columns: Vec<String>,
values: Vec<Vec<String>>,
conflict_column: String,
update_exprs: Vec<(String, String)>,
},
Update {
table: String,
set_exprs: Vec<(String, String)>,
predicate: Option<String>,
from_table: Option<String>,
},
}Expand description
A high-level DML plan derived from a SQL statement.
Variants§
InsertSelect
INSERT INTO table SELECT …
Fields
§
source: Box<LogicalPlan>Logical plan for the SELECT sub-query.
Upsert
INSERT … ON CONFLICT … DO UPDATE SET … (PostgreSQL / SQLite UPSERT).
Fields
Update
UPDATE t SET col = expr [FROM t2] [WHERE pred].
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DmlPlan
impl RefUnwindSafe for DmlPlan
impl Send for DmlPlan
impl Sync for DmlPlan
impl Unpin for DmlPlan
impl UnsafeUnpin for DmlPlan
impl UnwindSafe for DmlPlan
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more