pub enum CopySource {
Table(String),
Query {
sql: String,
into: String,
},
}Expand description
Source side of a copy: a whole table or an arbitrary SELECT.
Variants§
Table(String)
Copy a whole table. Generates SELECT * FROM <table> against
the source.
Query
Copy the result of an arbitrary SELECT into the named target table. The query must be a single SELECT — paging requires it.
Implementations§
Source§impl CopySource
impl CopySource
Sourcepub fn target_table(&self) -> &str
pub fn target_table(&self) -> &str
Returns the target table name (whether sourced from Table or into).
Trait Implementations§
Source§impl Clone for CopySource
impl Clone for CopySource
Source§fn clone(&self) -> CopySource
fn clone(&self) -> CopySource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CopySource
impl RefUnwindSafe for CopySource
impl Send for CopySource
impl Sync for CopySource
impl Unpin for CopySource
impl UnsafeUnpin for CopySource
impl UnwindSafe for CopySource
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