pub enum Format {
Show 16 variants
DuckBox,
Box,
Table,
Markdown,
Line,
List,
Csv,
Tsv,
Json,
JsonLines,
Quote,
Insert,
Html,
Ascii,
Column,
Trash,
}Expand description
What a result is printed as.
Variants§
DuckBox
The default. A box with the column types under the names and a row count under the table.
Box
A box without the type row and without the row count.
Table
The same table drawn in +, - and |.
Markdown
A GitHub flavoured markdown table.
Line
One name = value per line, a blank line between rows.
List
Values joined by the separator, which defaults to a pipe.
Csv
Comma separated, with the quoting rules of RFC 4180.
Tsv
Tab separated.
Json
One JSON array of objects.
JsonLines
One JSON object per line.
Quote
Single quoted values, comma separated, in the spelling SQL wants.
Insert
One INSERT statement per row.
Html
Table rows and cells as HTML, without the surrounding table element, which is what DuckDB emits.
Ascii
One value per line, columns first, no decoration at all.
Column
Space padded columns under a dashed rule.
Trash
Nothing at all, for timing a query without paying to print it.