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§
Source§impl Clone for CopyLegacyOption
impl Clone for CopyLegacyOption
Source§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