pub struct InsertBuilder { /* private fields */ }
Expand description
Builder for insert clauses
Implementations§
Source§impl InsertBuilder
impl InsertBuilder
Sourcepub fn predicate<E: Into<Expression>>(self, predicate: E) -> Self
pub fn predicate<E: Into<Expression>>(self, predicate: E) -> Self
Perform the insert operation when the predicate is satisfied
Sourcepub fn set<C: Into<DeltaColumn>, E: Into<Expression>>(
self,
column: C,
expression: E,
) -> Self
pub fn set<C: Into<DeltaColumn>, E: Into<Expression>>( self, column: C, expression: E, ) -> Self
Which values to insert into the target tables. If a target column is not specified then null is inserted.
Trait Implementations§
Source§impl Default for InsertBuilder
impl Default for InsertBuilder
Source§fn default() -> InsertBuilder
fn default() -> InsertBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InsertBuilder
impl !RefUnwindSafe for InsertBuilder
impl Send for InsertBuilder
impl Sync for InsertBuilder
impl Unpin for InsertBuilder
impl !UnwindSafe for InsertBuilder
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