pub struct Insert {
pub with: With,
pub on_conflict: Option<ConflictAction>,
pub database: Option<NameId>,
pub table: NameId,
pub alias: Option<NameId>,
pub columns: Vec<NameId>,
pub source: InsertSource,
pub upserts: Vec<Upsert>,
pub returning: Vec<ResultColumn>,
}Expand description
An INSERT statement.
Fields§
§with: WithThe WITH prefix.
on_conflict: Option<ConflictAction>The conflict algorithm from INSERT OR ... or REPLACE.
database: Option<NameId>The schema qualifier.
table: NameIdThe target table.
alias: Option<NameId>The table alias.
columns: Vec<NameId>The column list, when written.
source: InsertSourceThe rows.
upserts: Vec<Upsert>The ON CONFLICT clauses, in written order.
returning: Vec<ResultColumn>The RETURNING columns.
Trait Implementations§
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