Struct InsertTable
pub struct InsertTable {
pub table: TableId,
pub columns: Vec<ColumnId>,
}Expand description
A lowered insert target specifying a database table and its columns.
Used as the Table variant of InsertTarget after the query engine
lowers model-level inserts to table-level operations.
§Examples
ⓘ
use toasty_core::stmt::InsertTable;
use toasty_core::schema::db::{TableId, ColumnId};
let target = InsertTable {
table: TableId(0),
columns: vec![ColumnId { table: TableId(0), index: 0 }],
};Fields§
§table: TableIdThe database table to insert into.
columns: Vec<ColumnId>The columns to populate, in order matching the value rows.
Trait Implementations§
§impl Clone for InsertTable
impl Clone for InsertTable
§fn clone(&self) -> InsertTable
fn clone(&self) -> InsertTable
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 more§impl Debug for InsertTable
impl Debug for InsertTable
§impl From<InsertTable> for InsertTarget
impl From<InsertTable> for InsertTarget
§fn from(value: InsertTable) -> InsertTarget
fn from(value: InsertTable) -> InsertTarget
Converts to this type from the input type.
§impl PartialEq for InsertTable
impl PartialEq for InsertTable
impl StructuralPartialEq for InsertTable
Auto Trait Implementations§
impl Freeze for InsertTable
impl RefUnwindSafe for InsertTable
impl Send for InsertTable
impl Sync for InsertTable
impl Unpin for InsertTable
impl UnwindSafe for InsertTable
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