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§
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<CopyOption> for CopyOption
impl PartialEq<CopyOption> for CopyOption
source§fn eq(&self, other: &CopyOption) -> bool
fn eq(&self, other: &CopyOption) -> bool
source§impl PartialOrd<CopyOption> for CopyOption
impl PartialOrd<CopyOption> 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 more