Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 1.13 KB

File metadata and controls

44 lines (29 loc) · 1.13 KB

CockroachDB

Since testcontainers-python :material-tag: v4.7.0

Introduction

The Testcontainers module for CockroachDB.

Adding this module to your project dependencies

Please run the following command to add the CockroachDB module to your python dependencies:

pip install testcontainers[cockroachdb] sqlalchemy psycopg2

Usage example

Creating a CockroachDB container

Features

  • Distributed SQL database
  • ACID transactions
  • Strong consistency
  • Horizontal scaling
  • Built-in replication
  • Automatic sharding
  • SQL compatibility
  • Integration with pandas for data analysis

Configuration

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")