Documentation

Java

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>tidb</artifactId>
    <version>1.20.0</version>
    <scope>test</scope>
</dependency>
Usage:
var tidb = new TiDBContainer(DockerImageName.parse("pingcap/tidb:v6.1.0"));
tidb.start();