pub struct CopyTo {
pub query: QueryRef,
pub path: String,
pub options: Vec<(String, Option<String>)>,
}Expand description
COPY ... TO, which writes what a query answers to a file.
COPY t TO and COPY t (a, b) TO are held as the query over the table they mean, so the one
shape covers both spellings. The options are kept as written, name and value text, because
which ones exist depends on the format and the binder is where a wrong one is refused.
Fields§
§query: QueryRefWhat is written.
path: StringThe file name.
options: Vec<(String, Option<String>)>Each option, lowercased, with the text of its value or None when it was written bare.
Trait Implementations§
impl Eq for CopyTo
impl StructuralPartialEq for CopyTo
Auto Trait Implementations§
impl Freeze for CopyTo
impl RefUnwindSafe for CopyTo
impl Send for CopyTo
impl Sync for CopyTo
impl Unpin for CopyTo
impl UnsafeUnpin for CopyTo
impl UnwindSafe for CopyTo
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