Enum CopyLegacyOption
pub enum CopyLegacyOption {
Show 32 variants
AcceptAnyDate,
AcceptInvChars(Option<String>),
AddQuotes,
AllowOverwrite,
Binary,
BlankAsNull,
Bzip2,
CleanPath,
Csv(Vec<CopyLegacyCsvOption>),
DateFormat(Option<String>),
Delimiter(char),
EmptyAsNull,
Encrypted {
auto: bool,
},
Escape,
Extension(String),
FixedWidth(String),
Gzip,
Header,
IamRole(IamRoleKind),
IgnoreHeader(u64),
Json,
Manifest {
verbose: bool,
},
MaxFileSize(FileSize),
Null(String),
Parallel(Option<bool>),
Parquet,
PartitionBy(UnloadPartitionBy),
Region(String),
RowGroupSize(FileSize),
TimeFormat(Option<String>),
TruncateColumns,
Zstd,
}Expand description
An option in COPY statement before PostgreSQL version 9.0.
Variants§
AcceptAnyDate
ACCEPTANYDATE
AcceptInvChars(Option<String>)
ACCEPTINVCHARS
AddQuotes
ADDQUOTES
AllowOverwrite
ALLOWOVERWRITE
Binary
BINARY
BlankAsNull
BLANKSASNULL
Bzip2
BZIP2
CleanPath
CLEANPATH
Csv(Vec<CopyLegacyCsvOption>)
CSV …
DateFormat(Option<String>)
DATEFORMAT [ AS ] {‘dateformat_string’ | ‘auto’ }
Delimiter(char)
DELIMITER [ AS ] ‘delimiter_character’
EmptyAsNull
EMPTYASNULL
Encrypted
ENCRYPTED [ AUTO ]
Escape
ESCAPE
Extension(String)
EXTENSION ‘extension-name’
FixedWidth(String)
FIXEDWIDTH [ AS ] ‘fixedwidth-spec’
Gzip
GZIP
Header
HEADER
IamRole(IamRoleKind)
IAM_ROLE { DEFAULT | ‘arn:aws:iam::123456789:role/role1’ }
IgnoreHeader(u64)
IGNOREHEADER [ AS ] number_rows
Json
JSON
Manifest
MANIFEST [ VERBOSE ]
MaxFileSize(FileSize)
MAXFILESIZE [ AS ] max-size [ MB | GB ]
Null(String)
NULL [ AS ] ‘null_string’
Parallel(Option<bool>)
PARALLEL [ { ON | TRUE } | { OFF | FALSE } ]
Parquet
PARQUET
PartitionBy(UnloadPartitionBy)
PARTITION BY ( column_name [, … ] ) [ INCLUDE ]
Region(String)
REGION [ AS ] ‘aws-region’ }
RowGroupSize(FileSize)
ROWGROUPSIZE [ AS ] size [ MB | GB ]
TimeFormat(Option<String>)
TIMEFORMAT [ AS ] {‘timeformat_string’ | ‘auto’ | ‘epochsecs’ | ‘epochmillisecs’ }
TruncateColumns
TRUNCATECOLUMNS
Zstd
ZSTD
Trait Implementations§
§impl Clone for CopyLegacyOption
impl Clone for CopyLegacyOption
§fn clone(&self) -> CopyLegacyOption
fn clone(&self) -> CopyLegacyOption
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for CopyLegacyOption
impl Debug for CopyLegacyOption
§impl Display for CopyLegacyOption
impl Display for CopyLegacyOption
§impl Hash for CopyLegacyOption
impl Hash for CopyLegacyOption
§impl Ord for CopyLegacyOption
impl Ord for CopyLegacyOption
§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,
§impl PartialEq for CopyLegacyOption
impl PartialEq for CopyLegacyOption
§impl PartialOrd for CopyLegacyOption
impl PartialOrd for CopyLegacyOption
§impl Visit for CopyLegacyOption
impl Visit for CopyLegacyOption
§impl VisitMut for CopyLegacyOption
impl VisitMut for CopyLegacyOption
fn visit<V>(&mut self, visitor: &mut V) -> ControlFlow<<V as VisitorMut>::Break>where
V: VisitorMut,
impl Eq for CopyLegacyOption
impl StructuralPartialEq for CopyLegacyOption
Auto Trait Implementations§
impl Freeze for CopyLegacyOption
impl RefUnwindSafe for CopyLegacyOption
impl Send for CopyLegacyOption
impl Sync for CopyLegacyOption
impl Unpin for CopyLegacyOption
impl UnwindSafe for CopyLegacyOption
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.