pub struct Dml {
pub kind: String,
pub table: String,
pub on_error: String,
pub upserts: Vec<Upsert>,
pub columns: Vec<Option<String>>,
pub values: Option<Vec<Node>>,
pub rows: i64,
pub set: Vec<SetItem>,
pub where_: Option<Node>,
}Expand description
An INSERT, an UPDATE (kind update, or upsert for an upsert’s DO UPDATE) or a DELETE: each
kind’s members are required by [Members], and absent from the other kinds.
Fields§
§kind: String§table: String§on_error: String§upserts: Vec<Upsert>Each ON CONFLICT clause, in the order SQLite tries them.
columns: Vec<Option<String>>The target column per value position; None where SQLite could not name one.
values: Option<Vec<Node>>§rows: i641 for one VALUES row, the row count for a multi-row VALUES (whose rows are statement’s),
-1 for a SELECT source.
set: Vec<SetItem>§where_: Option<Node>Implementations§
Source§impl<'de> Dml
impl<'de> Dml
pub fn deserialize<__D>(__deserializer: __D) -> Result<Dml, __D::Error>where
__D: Deserializer<'de>,
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Dml
impl<'de> Deserialize<'de> for Dml
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for Dml
impl Freeze for Dml
impl Move for Dml
impl RefUnwindSafe for Dml
impl Send for Dml
impl Sync for Dml
impl Unpin for Dml
impl UnsafeUnpin for Dml
impl UnwindSafe for Dml
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