Skip to main content

Module stream_reader

Module stream_reader 

Source
Expand description

Forward-only streaming worksheet reader.

SheetStreamReader reads worksheet XML row-by-row using event-driven parsing (quick_xml::Reader) without materializing the full DOM. This enables processing large worksheets with bounded memory by reading rows in batches.

Shared string indices are resolved through a reference to the workbook’s SharedStringTable. Cell types (string, number, boolean, date, formula, error, inline string) are handled according to the OOXML specification.

Structs§

OwnedSheetStreamReader
Owning variant of SheetStreamReader for use in FFI contexts where lifetime parameters are not supported (e.g., napi classes).
SheetStreamReader
Forward-only streaming reader for worksheet XML.
StreamRow
A single row produced by the streaming reader.

Constants§

MAX_STREAM_BATCH_ROWS
Maximum number of rows returned by one streaming-reader batch.

Functions§

validate_stream_batch_size
Validate one requested stream batch size against the shared finite policy.