Module run

Module run 

Source
Expand description

CLI dispatch logic for the readstat binary.

Structsยง

IndicatifProgress ๐Ÿ”’
[ProgressCallback] implementation backed by an indicatif::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 --columns or --columns-file CLI options.
resolve_stream_rows ๐Ÿ”’
Determine stream row count based on reader type.
run
Executes the CLI command specified by the parsed ReadStatCli arguments.
run_data ๐Ÿ”’
Handle the data subcommand: read SAS data and write to an output file.
run_metadata ๐Ÿ”’
Handle the metadata subcommand: read and display SAS file metadata.
run_preview ๐Ÿ”’
Handle the preview subcommand: read a limited number of rows and write to stdout as CSV.