Expand description
Arrow IPC <-> JSON row helpers, shared by the embedded SQL surface
([Database::sql] / sql_arrow / sql_rows) and the optional remote
HTTP client. Kept here (rather than inside remote.rs) so the default
embedded build — which has no HTTP dependency — can still decode the Arrow
IPC bytes that MongrelSession::run produces.
Functions§
- batch_
to_ rows - Materialize one
RecordBatchinto JSON-row maps (column name → value). - batches_
to_ ipc - Encode
RecordBatches as Arrow IPC file bytes — the wire format the daemon and the NAPI addon both produce. Mirrors the node addon’snative_cols_to_ipc_from_batches. - batches_
to_ rows - Flatten a slice of batches into a single list of JSON-row maps.
- read_
arrow_ ipc - Decode Arrow IPC file bytes (the format
MongrelSessionand the daemon both emit) intoRecordBatches. An empty input yields an empty vec.