Versions in this module Expand all Collapse all v2 v2.28.1 Sep 13, 2024 Changes in this version + var CloudClickHouse = false + var LocalClickHouse = false + var RemoteClickHouse = false + func CheckMinServerServerVersion(conn driver.Conn, major, minor, patch uint64) bool + func ClientOptionsFromEnv(env ClickHouseTestEnvironment, settings clickhouse.Settings, useHTTP bool) clickhouse.Options + func CreateDatabase(testSet string) error + func GetClickHouseTestVersion() string + func GetConnection(testSet string, settings clickhouse.Settings, tlsConfig *tls.Config, ...) (driver.Conn, error) + func GetConnectionWithOptions(options *clickhouse.Options) (driver.Conn, error) + func GetEnv(key, fallback string) string + func IsSetInEnv(key string) bool + func OptionsToDSN(o *clickhouse.Options) string + func PrintMemUsage() + func RandAsciiString(n int) string + func RandIPv4() net.IP + func RandIPv6() net.IP + func RandIntString(n int) string + func Runtime(m *testing.M, ts string) (exitCode int) + func SetTestEnvironment(testSet string, environment ClickHouseTestEnvironment) + func SkipOnCloud(t *testing.T, reasons ...string) + func TestClientDefaultSettings(env ClickHouseTestEnvironment) clickhouse.Settings + func TestClientWithDefaultOptions(env ClickHouseTestEnvironment, settings clickhouse.Settings) (driver.Conn, error) + func TestClientWithDefaultSettings(env ClickHouseTestEnvironment) (driver.Conn, error) + func TestDatabaseSQLClientWithDefaultOptions(env ClickHouseTestEnvironment, settings clickhouse.Settings) (*sql.DB, error) + func TestDatabaseSQLClientWithDefaultSettings(env ClickHouseTestEnvironment) (*sql.DB, error) + type ClickHouseTestEnvironment struct + Container testcontainers.Container + ContainerIP string + Database string + Host string + HttpPort int + HttpsPort int + Password string + Port int + SslPort int + Username string + Version proto.Version + func CreateClickHouseTestEnvironment(testSet string) (ClickHouseTestEnvironment, error) + func GetExternalTestEnvironment(testSet string) (ClickHouseTestEnvironment, error) + func GetTestEnvironment(testSet string) (ClickHouseTestEnvironment, error) + type NginxReverseHTTPProxyTestEnvironment struct + HttpPort int + NginxContainer testcontainers.Container + func CreateNginxReverseProxyTestEnvironment(clickhouseEnv ClickHouseTestEnvironment) (NginxReverseHTTPProxyTestEnvironment, error) + type TinyProxyTestEnvironment struct + Container testcontainers.Container + HttpPort int + func CreateTinyProxyTestEnvironment(t *testing.T) (TinyProxyTestEnvironment, error) + func (e TinyProxyTestEnvironment) ProxyUrl(t *testing.T) string