pub struct UpdateBuilder { /* private fields */ }
Expand description
Builder for update clauses
Implementations§
Source§impl UpdateBuilder
impl UpdateBuilder
Sourcepub fn predicate<E: Into<Expression>>(self, predicate: E) -> Self
pub fn predicate<E: Into<Expression>>(self, predicate: E) -> Self
Perform the update operation when the predicate is satisfied
Sourcepub fn update<C: Into<DeltaColumn>, E: Into<Expression>>(
self,
column: C,
expression: E,
) -> Self
pub fn update<C: Into<DeltaColumn>, E: Into<Expression>>( self, column: C, expression: E, ) -> Self
How a column from the target table should be updated. In the match case the expression may contain both source and target columns. In the source not match case the expression may only contain target columns
Trait Implementations§
Source§impl Default for UpdateBuilder
impl Default for UpdateBuilder
Source§fn default() -> UpdateBuilder
fn default() -> UpdateBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UpdateBuilder
impl !RefUnwindSafe for UpdateBuilder
impl Send for UpdateBuilder
impl Sync for UpdateBuilder
impl Unpin for UpdateBuilder
impl !UnwindSafe for UpdateBuilder
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more