Documentation
¶
Overview ¶
Package session executes single statements against a ClickHouse client and renders their results. It is the common core of the interactive shell and of scripted (non-interactive) execution.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatError ¶
FormatError renders an error for the user. Server exceptions are shown the way ClickHouse tools show them; a cancellation is not an error message.
func FormatFooter ¶
FormatFooter renders the status line shown after a statement in interactive mode, for example "3 rows in set. 0.087 sec.".
Types ¶
type Result ¶
type Result struct {
// Verb is the statement's first keyword, upper-cased.
Verb string
// HasResultSet is false for statements that return nothing (DDL, INSERT, USE).
HasResultSet bool
Rows int64
Elapsed time.Duration
Stats chclient.Stats
}
Result summarises an executed statement.
Click to show internal directories.
Click to hide internal directories.