Since testcontainers-python :material-tag: v4.7.0
The Testcontainers module for CockroachDB.
Please run the following command to add the CockroachDB module to your python dependencies:
pip install testcontainers[cockroachdb] sqlalchemy psycopg2Creating a CockroachDB container
- Distributed SQL database
- ACID transactions
- Strong consistency
- Horizontal scaling
- Built-in replication
- Automatic sharding
- SQL compatibility
- Integration with pandas for data analysis
The CockroachDB container can be configured with the following parameters:
username: Database username (default: "root")password: Database password (default: "")database: Database name (default: "postgres")port: Port to expose (default: 26257)version: CockroachDB version to use (default: "latest")