Skip to main content

Dml

Struct Dml 

Source
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: i64

1 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

Source

pub fn deserialize<__D>(__deserializer: __D) -> Result<Dml, __D::Error>
where __D: Deserializer<'de>,

Trait Implementations§

Source§

impl Debug for Dml

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Dml

Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.