Enum sqlparser::ast::CopyOption
source · [−]pub enum CopyOption {
Format(Ident),
Freeze(bool),
Delimiter(char),
Null(String),
Header(bool),
Quote(char),
Escape(char),
ForceQuote(Vec<Ident>),
ForceNotNull(Vec<Ident>),
ForceNull(Vec<Ident>),
Encoding(String),
}
Expand description
An option in COPY
statement.
Variants
Format(Ident)
FORMAT format_name
Freeze(bool)
FREEZE [ boolean ]
Delimiter(char)
DELIMITER ‘delimiter_character’
Null(String)
NULL ‘null_string’
Header(bool)
HEADER [ boolean ]
Quote(char)
QUOTE ‘quote_character’
Escape(char)
ESCAPE ‘escape_character’
ForceQuote(Vec<Ident>)
FORCE_QUOTE { ( column_name [, …] ) | * }
ForceNotNull(Vec<Ident>)
FORCE_NOT_NULL ( column_name [, …] )
ForceNull(Vec<Ident>)
FORCE_NULL ( column_name [, …] )
Encoding(String)
ENCODING ‘encoding_name’
Trait Implementations
sourceimpl Clone for CopyOption
impl Clone for CopyOption
sourcefn clone(&self) -> CopyOption
fn clone(&self) -> CopyOption
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CopyOption
impl Debug for CopyOption
sourceimpl Display for CopyOption
impl Display for CopyOption
sourceimpl Hash for CopyOption
impl Hash for CopyOption
sourceimpl PartialEq<CopyOption> for CopyOption
impl PartialEq<CopyOption> for CopyOption
sourcefn eq(&self, other: &CopyOption) -> bool
fn eq(&self, other: &CopyOption) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CopyOption) -> bool
fn ne(&self, other: &CopyOption) -> bool
This method tests for !=
.
impl Eq for CopyOption
impl StructuralEq for CopyOption
impl StructuralPartialEq for CopyOption
Auto Trait Implementations
impl RefUnwindSafe for CopyOption
impl Send for CopyOption
impl Sync for CopyOption
impl Unpin for CopyOption
impl UnwindSafe for CopyOption
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more