Documentation
¶
Overview ¶
Package e2e implements end to end testing utilities.
Index ¶
Constants ¶
const ( EnvHost = "CH_HOST" // host:port of the native protocol endpoint EnvUser = "CH_USER" // defaults to "default" EnvPassword = "CH_PASSWORD" // blank by default EnvTLS = "CH_TLS" // "true" to connect with TLS )
Environment variables that select an already running ClickHouse server (for example, ClickHouse Cloud) instead of a local server started by cht.
const ( RemoteDialTimeout = 20 * time.Second RemoteReadTimeout = 60 * time.Second )
Timeouts for a remote server. They are larger than the client defaults because of network latency to the server.
const DatabasePrefix = "ch_go_test_"
DatabasePrefix is the name prefix of the databases that tests create on a remote server. Each test connection gets its own database.
const Env = "CH_E2E"
Env variable for E2E tests.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Exec ¶ added in v0.76.0
Exec runs a single query on a new connection to the remote server, using the default database.