pub enum CopySource<'a> {
Table {
name: QualifiedName<'a>,
columns: Vec<Identifier<'a>>,
},
Query {
lparen_span: Span,
query: Box<Statement<'a>>,
rparen_span: Span,
},
}Expand description
The source / destination of a COPY: either a table (with optional column list)
or a parenthesised query (only valid with TO).
Variants§
Table
Plain table reference, e.g. public.actor (col1, col2)
Query
Subquery source, e.g. (SELECT * FROM t) — only valid with TO
Trait Implementations§
Source§impl<'a> Clone for CopySource<'a>
impl<'a> Clone for CopySource<'a>
Source§fn clone(&self) -> CopySource<'a>
fn clone(&self) -> CopySource<'a>
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 moreSource§impl<'a> Debug for CopySource<'a>
impl<'a> Debug for CopySource<'a>
Auto Trait Implementations§
impl<'a> Freeze for CopySource<'a>
impl<'a> RefUnwindSafe for CopySource<'a>
impl<'a> Send for CopySource<'a>
impl<'a> Sync for CopySource<'a>
impl<'a> Unpin for CopySource<'a>
impl<'a> UnsafeUnpin for CopySource<'a>
impl<'a> UnwindSafe for CopySource<'a>
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