Description
ClickHouse is an open-source database management system for analytical processing that allows users to generate reports using SQL queries in real-time.Examples
Dependency:
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>clickhouse</artifactId>
<version>1.20.0</version>
<scope>test</scope>
</dependency>
Usage:
var clickHouseContainer = new ClickHouseContainer();
clickHouseContainer.start();
Dependency:
go get github.com/testcontainers/testcontainers-go/modules/clickhouse
Usage:
clickHouseContainer, err := clickhouse.Run(ctx, "clickhouse/clickhouse-server:23.3.8.21-alpine")
Dependency:
pip install testcontainers[clickhouse]
Usage:
with ClickHouseContainer("clickhouse/clickhouse-server:21.8") as clickhouse:
client = clickhouse_driver.Client.from_url(clickhouse.get_connection_url())
client.execute("select 'working'")