Enum sqlparser::ast::CopyOption
source · pub enum CopyOption {
Format(Located<Ident>),
Freeze(bool),
Delimiter(char),
Null(String),
Header(bool),
Quote(char),
Escape(char),
ForceQuote(Vec<Located<Ident>>),
ForceNotNull(Vec<Located<Ident>>),
ForceNull(Vec<Located<Ident>>),
Encoding(String),
}
Expand description
An option in COPY
statement.
Variants§
Format(Located<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<Located<Ident>>)
FORCE_QUOTE { ( column_name [, …] ) | * }
ForceNotNull(Vec<Located<Ident>>)
FORCE_NOT_NULL ( column_name [, …] )
ForceNull(Vec<Located<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<'de> Deserialize<'de> for CopyOption
impl<'de> Deserialize<'de> for CopyOption
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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
This method tests for
self
and other
values to be equal, and is used
by ==
.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