package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev

# Functions

FormatVal formats a value retrieved by a SQL driver into a string suitable for displaying to the user.
NewRowSliceIter is an implementation of the rowStrIter interface and it is used when the rows have not been buffered into memory yet and we want to stream them to the row formatters as they arrive over the network.

# Constants

TableDisplayCSV has the values separated by commas.
TableDisplayHTML reports the results using a HTML table.
TableDisplayJSON reports results using JSON.
this must remain at the end of the list.
TableDisplayNDJSON reports results in an newlined-delimited JSON format (https://github.com/ndjson/ndjson-spec).
TableDisplayRaw is a special format optimized to ensure that the values can be parsed accurately from the text output.
TableDisplayRawHTML is a variant of the HTML output format supported specifically to generate CockroachDB's documentation.
TableDisplayRecords is a record-oriented format.
TableDisplaySQL reports results using SQL statements that mimic the creation of a SQL table containing the result values.
TableDisplayTable is a tabular output format, that ensures that all values in the same column are rendered with the same width.
TableDisplayTSV has the values separated by tabs.
TableDisplayUnumberedHTML is a variant of the HTML output format which does not include a row number prefix on each line.

# Variables

TableFormatHelp lists the possible values for the display format.

# Structs

Context represents configuration for running SQL query and presenting results to the screen.

# Interfaces

RowStrIter is an iterator interface for the PrintQueryOutput function.

# Type aliases

TableDisplayFormat identifies the format with which SQL tabular results should be displayed.