pub fn bounded_table_text(
lf: LazyFrame,
format: CopyFormat,
header: bool,
limit: usize,
) -> Result<(String, usize), String>Expand description
The text of a table copy and its row count, read from lf a batch at a time
and given up at the first batch that takes it past limit bytes of base64:
a copy the terminal will not take is never read or written whole. Text only;
a capped destination offers no HTML flavor.
What the query does upstream of its last rows (a sort, a join) still takes its own memory; a Markdown copy keeps its rows until the widths are known, which the cap bounds as it does the text.