Documentation ¶
Overview ¶
Package container provides a set of functions to interact with ClickHouse containers.
Index ¶
Constants ¶
View Source
const ( // SecureNativePort is the secure port for the ClickHouse container. SecureNativePort = nat.Port("9440/tcp") )
Variables ¶
This section is empty.
Functions ¶
func WithCerts ¶
func WithCerts(caCert, clientCerts *tlscert.Certificate) testcontainers.CustomizeRequestOption
WithCerts is a customize request option that adds the certificates to the clickhouse container.
Types ¶
type Container ¶
type Container struct { *chmodule.ClickHouseContainer // contains filtered or unexported fields }
Container is a struct that holds the clickhouse and zookeeper containers.
func CreateClickHouseContainer ¶
CreateClickHouseContainer function starts and testcontainer for clickhouse. The caller is responsible for terminating the container.
func (*Container) GetClickHouseAsConn ¶
GetClickHouseAsConn function returns a clickhouse.Conn connection which uses native ClickHouse protocol.
func (*Container) GetClickhouseAsDB ¶
GetClickhouseAsDB function returns a sql.DB connection which allows interfaceing with the stdlib database/sql package.
Click to show internal directories.
Click to hide internal directories.