pub enum ReadStatCliCommands {
Metadata {
input: PathBuf,
as_json: bool,
no_progress: bool,
skip_row_count: bool,
},
Preview {
input: PathBuf,
rows: u32,
reader: Option<Reader>,
stream_rows: Option<u32>,
no_progress: bool,
columns: Option<Vec<String>>,
columns_file: Option<PathBuf>,
},
Data {Show 15 fields
input: PathBuf,
output: Option<PathBuf>,
format: Option<CliOutFormat>,
overwrite: bool,
rows: Option<u32>,
reader: Option<Reader>,
stream_rows: Option<u32>,
no_progress: bool,
parallel: bool,
parallel_write: bool,
parallel_write_buffer_mb: u64,
compression: Option<CliParquetCompression>,
compression_level: Option<u32>,
columns: Option<Vec<String>>,
columns_file: Option<PathBuf>,
},
}Expand description
CLI subcommands for readstat.
Variants§
Metadata
Display sas7bdat metadata
Fields
Preview
Preview sas7bdat data
Fields
reader: Option<Reader>Type of reader{n} mem = read all data into memory{n} stream = read at most stream-rows into memory{n}Defaults to stream
Data
Convert sas7bdat data to csv, feather (or the Arrow IPC format), ndjson, or parquet format
Fields
format: Option<CliOutFormat>Output file format{n}Defaults to csv
reader: Option<Reader>Type of reader{n} mem = read all data into memory{n} stream = read at most stream-rows into memory{n}Defaults to stream
stream_rows: Option<u32>Number of rows to stream (read into memory) at a time{n}↑ rows = ↑ memory usage{n}Ignored if reader is set to mem{n}Defaults to 10,000 rows
parallel_write: boolWrite output data in parallel{n}Only effective when parallel is enabled{n}May write batches out of order for Parquet/Feather
parallel_write_buffer_mb: u64Memory buffer size in MB before spilling to disk during parallel writes{n}Defaults to 100 MB{n}Only effective when parallel-write is enabled
compression: Option<CliParquetCompression>Parquet compression algorithm
Trait Implementations§
Source§impl Debug for ReadStatCliCommands
impl Debug for ReadStatCliCommands
Source§impl FromArgMatches for ReadStatCliCommands
impl FromArgMatches for ReadStatCliCommands
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for ReadStatCliCommands
impl Subcommand for ReadStatCliCommands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for ReadStatCliCommands
impl RefUnwindSafe for ReadStatCliCommands
impl Send for ReadStatCliCommands
impl Sync for ReadStatCliCommands
impl Unpin for ReadStatCliCommands
impl UnwindSafe for ReadStatCliCommands
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> 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