Skip to main content

Crate ssh_commander_pg_parquet

Crate ssh_commander_pg_parquet 

Source
Expand description

Parquet export pipeline. Writer handles live in a process-wide registry so the FFI can stream rows from Swift across multiple pgFetchPage calls without buffering the full result.

All columns serialize as Utf8 — the explorer never has typed values to begin with (everything comes back as the server’s text representation), and a Parquet file with text columns reads correctly into every analysis tool that supports the format. Per-OID Arrow type inference would be the polished v2; for v1, “string Parquet that round-trips through pandas, DuckDB, and Spark” is the right balance against the dep cost.

Structs§

ParquetRegistry
Registry of in-flight Parquet writers, keyed by an opaque u64 handle. The FFI returns the handle to Swift on open; Swift passes it back on every append and close.

Enums§

ParquetExportError