Since testcontainers-python :material-tag: v4.8.0
The Testcontainers module for IBM Db2.
Please run the following command to add the DB2 module to your python dependencies:
pip install testcontainers[db2] sqlalchemy ibm-db- Full SQL support
- Transaction management
- Stored procedures
- User-defined functions
- Advanced analytics
- JSON support
- Integration with pandas for data analysis
The DB2 container can be configured with the following parameters:
username: Database username (default: "db2inst1")password: Database password (default: "password")database: Database name (default: "testdb")port: Port to expose (default: 50000)version: DB2 version to use (default: "latest")