Enum sqlparser::ast::CopyLegacyOption
source · pub enum CopyLegacyOption {
Binary,
Delimiter(char),
Null(String),
Csv(Vec<CopyLegacyCsvOption>),
}
Expand description
An option in COPY
statement before PostgreSQL version 9.0.
Variants§
Binary
BINARY
Delimiter(char)
DELIMITER [ AS ] ‘delimiter_character’
Null(String)
NULL [ AS ] ‘null_string’
Csv(Vec<CopyLegacyCsvOption>)
CSV …
Trait Implementations§
source§impl Clone for CopyLegacyOption
impl Clone for CopyLegacyOption
source§fn clone(&self) -> CopyLegacyOption
fn clone(&self) -> CopyLegacyOption
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 CopyLegacyOption
impl Debug for CopyLegacyOption
source§impl<'de> Deserialize<'de> for CopyLegacyOption
impl<'de> Deserialize<'de> for CopyLegacyOption
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 CopyLegacyOption
impl Display for CopyLegacyOption
source§impl Hash for CopyLegacyOption
impl Hash for CopyLegacyOption
source§impl Ord for CopyLegacyOption
impl Ord for CopyLegacyOption
source§fn cmp(&self, other: &CopyLegacyOption) -> Ordering
fn cmp(&self, other: &CopyLegacyOption) -> 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<CopyLegacyOption> for CopyLegacyOption
impl PartialEq<CopyLegacyOption> for CopyLegacyOption
source§fn eq(&self, other: &CopyLegacyOption) -> bool
fn eq(&self, other: &CopyLegacyOption) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<CopyLegacyOption> for CopyLegacyOption
impl PartialOrd<CopyLegacyOption> for CopyLegacyOption
source§fn partial_cmp(&self, other: &CopyLegacyOption) -> Option<Ordering>
fn partial_cmp(&self, other: &CopyLegacyOption) -> 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