Skip to main content

Module table

Module table 

Source
Expand description

A configurable writer strategy for tabular data.

TableStrategy is a dispatcher: it inspects the dtype of the stream it is handed and routes struct columns to StructStrategy and everything else to the configured leaf strategy. Because it hands itself (suitably descended) to StructStrategy as the strategy for the struct’s children, arbitrarily nested struct trees are written with no manual wiring.

The dispatcher also owns field-path overrides, letting callers force a specific leaf field — at any depth — onto a custom strategy.

Structs§

TableStrategy
A configurable strategy for writing nested tabular data, dispatching each (sub)stream to the structural writer for its dtype.