pub struct Insert {
pub name: Slice,
pub columns: Slice,
pub source: QueryRef,
pub returning: Option<QueryRef>,
pub conflict: Option<Conflict>,
}Expand description
INSERT INTO name (columns) query.
Fields§
§name: SliceThe table name, as a run of parts, outermost first.
columns: SliceThe column list, as a run of parts, empty when the statement did not write one.
source: QueryRefWhat produces the rows, which is a VALUES clause or any other query, or NONE for
DEFAULT VALUES, which is one row of every column’s default.
returning: Option<QueryRef>The RETURNING list, held as SELECT list FROM table [AS alias] and run over the rows the
statement wrote rather than over the table.
conflict: Option<Conflict>What an INSERT does with a row whose key the table already holds, when it said.
Trait Implementations§
impl Copy for Insert
impl Eq for Insert
impl StructuralPartialEq for Insert
Auto Trait Implementations§
impl Freeze for Insert
impl RefUnwindSafe for Insert
impl Send for Insert
impl Sync for Insert
impl Unpin for Insert
impl UnsafeUnpin for Insert
impl UnwindSafe for Insert
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