Description
TiDB is an open-source NewSQL database that supports Hybrid Transactional and Analytical Processing workloads. It is MySQL compatible and can provide horizontal scalability, strong consistency, and high availability.Examples
Dependency:
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>testcontainers-tidb</artifactId>
<version>2.0.1</version>
<scope>test</scope>
</dependency>
Usage:
var tidb = new TiDBContainer(DockerImageName.parse("pingcap/tidb:v6.1.0"));
tidb.start();
Dependency:
go get github.com/testcontainers/testcontainers-go/modules/tidb
Usage:
ctr, err := tidb.Run(ctx, "pingcap/tidb:v8.4.0")