pub struct InsertStatement {
pub schema: Option<String>,
pub table: String,
pub columns: Vec<String>,
pub values: InsertSource,
pub on_conflict: Option<OnConflict>,
}Expand description
An INSERT statement.
Fields§
§schema: Option<String>Schema name.
table: StringTable name.
columns: Vec<String>Column names (optional).
values: InsertSourceValues to insert.
on_conflict: Option<OnConflict>ON CONFLICT clause (for UPSERT).
Trait Implementations§
Source§impl Clone for InsertStatement
impl Clone for InsertStatement
Source§fn clone(&self) -> InsertStatement
fn clone(&self) -> InsertStatement
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 moreSource§impl Debug for InsertStatement
impl Debug for InsertStatement
Source§impl Display for InsertStatement
impl Display for InsertStatement
Source§impl PartialEq for InsertStatement
impl PartialEq for InsertStatement
impl StructuralPartialEq for InsertStatement
Auto Trait Implementations§
impl Freeze for InsertStatement
impl RefUnwindSafe for InsertStatement
impl Send for InsertStatement
impl Sync for InsertStatement
impl Unpin for InsertStatement
impl UnwindSafe for InsertStatement
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