pub struct SQLInsertBuilder {
pub table: String,
pub columns: Vec<String>,
pub rows: Vec<Vec<String>>,
pub on_conflict: Option<SQLConflictAction>,
pub returning: Vec<String>,
}Fields§
§table: String§columns: Vec<String>§rows: Vec<Vec<String>>§on_conflict: Option<SQLConflictAction>§returning: Vec<String>Implementations§
Source§impl SQLInsertBuilder
impl SQLInsertBuilder
pub fn new(table: impl Into<String>) -> Self
pub fn column(self, col: impl Into<String>) -> Self
pub fn values(self, vals: Vec<String>) -> Self
pub fn on_conflict(self, action: SQLConflictAction) -> Self
pub fn returning(self, col: impl Into<String>) -> Self
pub fn build(&self) -> String
Trait Implementations§
Source§impl Clone for SQLInsertBuilder
impl Clone for SQLInsertBuilder
Source§fn clone(&self) -> SQLInsertBuilder
fn clone(&self) -> SQLInsertBuilder
Returns a duplicate of the value. Read more
1.0.0 · 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 SQLInsertBuilder
impl RefUnwindSafe for SQLInsertBuilder
impl Send for SQLInsertBuilder
impl Sync for SQLInsertBuilder
impl Unpin for SQLInsertBuilder
impl UnsafeUnpin for SQLInsertBuilder
impl UnwindSafe for SQLInsertBuilder
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