pub struct CopyTable {
pub source: Name,
pub target: Name,
pub columns: Vec<(Name, Name)>,
}Expand description
A statement to copy rows from one table to another.
Generates: INSERT INTO "target" ("t_col1", "t_col2") SELECT "s_col1", "s_col2" FROM "source"
Fields§
§source: NameSource table name.
target: NameTarget table name.
columns: Vec<(Name, Name)>Column mappings: (target_column_name, source_column_name).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CopyTable
impl RefUnwindSafe for CopyTable
impl Send for CopyTable
impl Sync for CopyTable
impl Unpin for CopyTable
impl UnwindSafe for CopyTable
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