1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//! Parquet ↔ Excel streaming conversion
//!
//! This module provides bidirectional conversion between Parquet and Excel formats
//! with streaming support for handling large files efficiently.
//!
//! # Features
//!
//! - Convert Parquet → Excel with constant memory usage
//! - Convert Excel → Parquet with columnar optimization
//! - Support for common data types (string, int, float, datetime, bool)
//! - Streaming row-by-row processing
//!
//! # Parquet → Excel Example
//!
//! ```no_run
//! use excelstream::parquet::ParquetToExcelConverter;
//!
//! // Convert entire file
//! let converter = ParquetToExcelConverter::new("data.parquet")?;
//! converter.convert_to_excel("output.xlsx")?;
//!
//! // Streaming conversion
//! use excelstream::{ExcelWriter, parquet::ParquetReader};
//!
//! let mut reader = ParquetReader::open("large.parquet")?;
//! let mut writer = ExcelWriter::new("output.xlsx")?;
//!
//! // Write headers from schema
//! writer.write_header_bold(&reader.column_names())?;
//!
//! // Stream rows
//! for row in reader.rows()? {
//! writer.write_row(&row?)?;
//! }
//! writer.save()?;
//! # Ok::<(), Box<dyn std::error::Error>>(())
//! ```
//!
//! # Excel → Parquet Example
//!
//! ```no_run
//! use excelstream::parquet::ExcelToParquetConverter;
//!
//! // Convert with schema inference
//! let converter = ExcelToParquetConverter::new("data.xlsx")?;
//! converter.convert_to_parquet("output.parquet")?;
//! # Ok::<(), Box<dyn std::error::Error>>(())
//! ```
pub use ParquetReader;
pub use ;