Enum datafusion::sql::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§
source§impl Clone for CopyOption
impl Clone for CopyOption
source§fn clone(&self) -> CopyOption
fn clone(&self) -> CopyOption
Returns a copy 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 Debug for CopyOption
impl Debug for CopyOption
source§impl Display for CopyOption
impl Display for CopyOption
source§impl Hash for CopyOption
impl Hash for CopyOption
source§impl Ord for CopyOption
impl Ord for CopyOption
source§fn cmp(&self, other: &CopyOption) -> Ordering
fn cmp(&self, other: &CopyOption) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for CopyOption
impl PartialEq for CopyOption
source§fn 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 ==
.source§impl PartialOrd for CopyOption
impl PartialOrd for CopyOption
source§fn partial_cmp(&self, other: &CopyOption) -> Option<Ordering>
fn partial_cmp(&self, other: &CopyOption) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Visit for CopyOption
impl Visit for CopyOption
source§impl VisitMut for CopyOption
impl VisitMut for CopyOption
fn visit<V>(&mut self, visitor: &mut V) -> ControlFlow<<V as VisitorMut>::Break>where
V: VisitorMut,
impl Eq for CopyOption
impl StructuralPartialEq for CopyOption
Auto Trait Implementations§
impl Freeze for CopyOption
impl RefUnwindSafe for CopyOption
impl Send for CopyOption
impl Sync for CopyOption
impl Unpin for CopyOption
impl UnwindSafe for CopyOption
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
source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more