pub struct InsertQuery<T: Table, O = ()> { /* private fields */ }Implementations§
Source§impl<T: Table, O> InsertQuery<T, O>
impl<T: Table, O> InsertQuery<T, O>
Sourcepub fn value<V>(self, column: Column<T, V>, value: impl IntoSqlValue<V>) -> Self
pub fn value<V>(self, column: Column<T, V>, value: impl IntoSqlValue<V>) -> Self
Add a value to the first row. This preserves the original single-row API.
pub fn row(self, row: InsertRow<T>) -> Self
pub fn rows(self, rows: impl IntoIterator<Item = InsertRow<T>>) -> Self
pub fn on_conflict<C: ConflictTarget<T>>(self, target: C) -> Self
pub fn do_nothing(self) -> Self
pub fn do_update<V>( self, column: Column<T, V>, value: impl IntoSqlValue<V>, ) -> Self
pub fn do_update_from_excluded<V>(self, column: Column<T, V>) -> Self
pub fn returning<S: Selection>(self, selection: S) -> InsertQuery<T, S::Output>
Trait Implementations§
Source§impl<T: Clone + Table, O: Clone> Clone for InsertQuery<T, O>
impl<T: Clone + Table, O: Clone> Clone for InsertQuery<T, O>
Source§fn clone(&self) -> InsertQuery<T, O>
fn clone(&self) -> InsertQuery<T, O>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T, O> Freeze for InsertQuery<T, O>
impl<T, O> RefUnwindSafe for InsertQuery<T, O>
impl<T, O> Send for InsertQuery<T, O>
impl<T, O> Sync for InsertQuery<T, O>
impl<T, O> Unpin for InsertQuery<T, O>
impl<T, O> UnsafeUnpin for InsertQuery<T, O>
impl<T, O> UnwindSafe for InsertQuery<T, O>
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