pub enum UpdateImpl<'until_build, 'post_build> {
    SQLite(UpdateData<'until_build, 'post_build>),
    MySQL(UpdateData<'until_build, 'post_build>),
    Postgres(UpdateData<'until_build, 'post_build>),
}
Expand description

Implementation of the Update trait for the different implementations.

Should only be constructed via DBImpl::update.

Variants§

§

SQLite(UpdateData<'until_build, 'post_build>)

SQLite representation of the UPDATE operation.

§

MySQL(UpdateData<'until_build, 'post_build>)

MySQL representation of the UPDATE operation.

§

Postgres(UpdateData<'until_build, 'post_build>)

Postgres representation of the UPDATE operation.

Trait Implementations§

source§

impl<'until_build, 'post_build> Debug for UpdateImpl<'until_build, 'post_build>

source§

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

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

impl<'until_build, 'post_build> Update<'until_build, 'post_build> for UpdateImpl<'until_build, 'post_build>

source§

fn rollback_transaction(self) -> Self

Turns on ROLLBACK mode. Read more
source§

fn where_clause(self, condition: &'until_build Condition<'post_build>) -> Self

Adds a Condition to the update query.
source§

fn add_update( self, column_name: &'until_build str, column_value: Value<'post_build> ) -> Self

Add an update Read more
source§

fn build(self) -> Result<(String, Vec<Value<'post_build>>), Error>

Builds the given statement. Read more

Auto Trait Implementations§

§

impl<'until_build, 'post_build> RefUnwindSafe for UpdateImpl<'until_build, 'post_build>

§

impl<'until_build, 'post_build> Send for UpdateImpl<'until_build, 'post_build>

§

impl<'until_build, 'post_build> Sync for UpdateImpl<'until_build, 'post_build>

§

impl<'until_build, 'post_build> Unpin for UpdateImpl<'until_build, 'post_build>where 'post_build: 'until_build,

§

impl<'until_build, 'post_build> UnwindSafe for UpdateImpl<'until_build, 'post_build>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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 Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.