TestContainers
Published 16 November 2022
Testcontainers
- Verified Versions: N/A
- Maintainer: Redgate
Supported Versions and Support Levels
- For information regarding the supported version and support levels available, please see Supported Databases for Flyway
- For information regarding the Flyway features available, please see Flyway feature summary
Driver
Item | Details |
---|---|
URL format | jdbc:tc: instead of jdbc: for your database |
Ships with Flyway Command-line | No |
Maven Central coordinates | Database specific JARs: org.testcontainers:cockroachdb:jar org.testcontainers:db2:jar org.testcontainers:mariadb:jar org.testcontainers:mssqlserver:jar org.testcontainers:mysql:jar org.testcontainers:oracle-xe:jar org.testcontainers:postgresql:jar org.testcontainers:tidb:jar org.testcontainers:yugabytedb:jar Dependencies: org.testcontainers:jdbc:jar org.testcontainers:database-commons:jar org.testcontainers:testcontainers:jar |
Supported versions | 1.17.6 |
Default Java class | org.testcontainers.jdbc.ContainerDatabaseDriver |
- See the Testcontainers documentation for more information
Compatibility
- See Testcontainers list of supported databases to check if your chosen database is compatible
Example URL
jdbc:tc:postgresql:11-alpine://localhost:5432/databasename
Limitations
- If Flyway doesn't ship with a database driver for your chosen database, you will still need to provide one in order to use it with Testcontainers. For example, if you want to connect to a DB2 database with Testcontainers you will still need to provide a DB2 driver whose Maven Central coordinates are
com.ibm.db2.jcc:11.5.0.0