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<'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 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 Serialize for CopyOption
impl Serialize for CopyOption
source§impl Visit for CopyOption
impl Visit for CopyOption
source§impl VisitMut for CopyOption
impl VisitMut for CopyOption
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
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§
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