Expand description
CLI dispatch logic for the readstat binary.
Structsยง
- Indicatif
Progress ๐ - [
ProgressCallback] implementation backed by anindicatif::ProgressBar.
Constantsยง
- CHANNEL_
CAPACITY ๐ - Capacity of the bounded channel between reader and writer threads. Also used as the batch size for bounded-batch parallel writes.
- STREAM_
ROWS ๐ - Default number of rows to read per streaming chunk.
Functionsยง
- create_
progress ๐ - Create a progress bar if progress is enabled.
- resolve_
columns ๐ - Resolve column names from
--columnsor--columns-fileCLI options. - resolve_
stream_ ๐rows - Determine stream row count based on reader type.
- run
- Executes the CLI command specified by the parsed
ReadStatCliarguments. - run_
data ๐ - Handle the
datasubcommand: read SAS data and write to an output file. - run_
metadata ๐ - Handle the
metadatasubcommand: read and display SAS file metadata. - run_
preview ๐ - Handle the
previewsubcommand: read a limited number of rows and write to stdout as CSV.