pub struct InsertDyn<Table, Values> { /* private fields */ }Expand description
A dynamic INSERT statement builder using string-based column names.
For compile-time validated queries, use Insert from builder::typed.
Implementations§
Source§impl<Values> InsertDyn<NoTable, Values>
impl<Values> InsertDyn<NoTable, Values>
Sourcepub fn into_table(self, table: &str) -> InsertDyn<HasTable, Values>
pub fn into_table(self, table: &str) -> InsertDyn<HasTable, Values>
Specifies the table to insert into.
Source§impl InsertDyn<HasTable, NoValues>
impl InsertDyn<HasTable, NoValues>
Sourcepub fn values<T: ToSqlValue>(
self,
vals: Vec<T>,
) -> InsertDyn<HasTable, HasValues>
pub fn values<T: ToSqlValue>( self, vals: Vec<T>, ) -> InsertDyn<HasTable, HasValues>
Adds a row of values to insert.
Sourcepub fn values_many<T: ToSqlValue>(
self,
rows: Vec<Vec<T>>,
) -> InsertDyn<HasTable, HasValues>
pub fn values_many<T: ToSqlValue>( self, rows: Vec<Vec<T>>, ) -> InsertDyn<HasTable, HasValues>
Adds multiple rows of values to insert.
Trait Implementations§
Auto Trait Implementations§
impl<Table, Values> Freeze for InsertDyn<Table, Values>
impl<Table, Values> RefUnwindSafe for InsertDyn<Table, Values>where
Table: RefUnwindSafe,
Values: RefUnwindSafe,
impl<Table, Values> Send for InsertDyn<Table, Values>
impl<Table, Values> Sync for InsertDyn<Table, Values>
impl<Table, Values> Unpin for InsertDyn<Table, Values>
impl<Table, Values> UnwindSafe for InsertDyn<Table, Values>where
Table: UnwindSafe,
Values: UnwindSafe,
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