pub struct Insert {
pub table: String,
pub columns: Vec<ColumnMarker>,
pub values: Vec<Vec<Value>>,
pub returning: Vec<ColumnMarker>,
}Expand description
INSERT query AST node.
Fields§
§table: StringTable name.
columns: Vec<ColumnMarker>Columns to insert into.
values: Vec<Vec<Value>>Rows of values to insert (each inner Vec is one row).
returning: Vec<ColumnMarker>Columns to return (RETURNING clause). Empty = no RETURNING.
Implementations§
Source§impl Insert
impl Insert
Sourcepub fn into_table(table: impl Into<String>) -> InsertBuilder
pub fn into_table(table: impl Into<String>) -> InsertBuilder
Creates a new INSERT query builder for the given table.
Trait Implementations§
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