Skip to main content

Module format

Module format 

Source
Expand description

The output modes.

Every mode here is one DuckDB has, spelled the way DuckDB spells it, and producing the bytes DuckDB produces. That is the whole point: a script that pipes .mode csv output into something else is a script that has to keep working when the binary name changes, and a mode that is nearly right is worse than one that is missing, because a missing one says so.

tests/shell.rs holds the captured output of a real DuckDB binary for each of these and diffs against it, so none of this is a claim.

Structs§

Settings
Everything about how output is printed, which is what the dot commands change.

Enums§

Format
What a result is printed as.

Functions§

escaped
How .show spells a separator, which is with the escapes rather than the bytes.
render
Prints a result.