Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Result struct {
Conn string // connection name the statement ran on
Query string // the statement text
Columns []string // column names
Rows [][]string // display-ready values (NULL rendered as "NULL")
Raw [][]any // typed values, used for JSON export
Duration time.Duration // wall time for the statement
Truncated bool // true when the row limit was hit
IsExec bool // true for non-query statements (INSERT/UPDATE/...)
Affected int64 // rows affected, when IsExec
// Transposed marks a result turned on its side (export.Transpose): each
// row is one of the source's columns, its name in column 0, so the HTML
// renderings draw that column as row headers rather than as data.
Transposed bool
}
Result holds one tabular result set from a query or exec statement.
Click to show internal directories.
Click to hide internal directories.