pub struct InsertBuilder { /* private fields */ }Expand description
Builder for INSERT queries.
Implementations§
Source§impl InsertBuilder
impl InsertBuilder
Sourcepub fn with_capacity(self, capacity: InsertCapacity) -> Self
pub fn with_capacity(self, capacity: InsertCapacity) -> Self
Reserve capacity for the builder’s internal vectors.
Sourcepub fn columns(self, columns: Vec<ColumnMarker>) -> Self
pub fn columns(self, columns: Vec<ColumnMarker>) -> Self
Sets the columns to insert into.
Sourcepub fn column(self, column: ColumnMarker) -> Self
pub fn column(self, column: ColumnMarker) -> Self
Adds a column to insert into.
Sourcepub fn values(self, row: Vec<Value>) -> Self
pub fn values(self, row: Vec<Value>) -> Self
Adds a row of values to insert.
Each call adds one row. The number of values must match
the number of columns when build() is called.
Sourcepub fn returning(self, columns: Vec<ColumnMarker>) -> Self
pub fn returning(self, columns: Vec<ColumnMarker>) -> Self
Sets the RETURNING clause columns.
Trait Implementations§
Source§impl Clone for InsertBuilder
impl Clone for InsertBuilder
Source§fn clone(&self) -> InsertBuilder
fn clone(&self) -> InsertBuilder
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 Freeze for InsertBuilder
impl RefUnwindSafe for InsertBuilder
impl Send for InsertBuilder
impl Sync for InsertBuilder
impl Unpin for InsertBuilder
impl UnsafeUnpin 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