subtitle |
---|
TestContainers |
Compatible | ✓ |
---|---|
Certified | ✓ |
Guaranteed | ✓ {% include teams.html %} |
Support Level determines the degree of support available for this database ([learn more](Learn More/Database Support Levels)).
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:1.17.6 org.testcontainers:db2:jar:1.17.6 org.testcontainers:mariadb:jar:1.17.6 org.testcontainers:mssqlserver:jar:1.17.6 org.testcontainers:mysql:jar:1.17.6 org.testcontainers:oracle-xe:jar:1.17.6 org.testcontainers:postgresql:jar:1.17.6 org.testcontainers:tidb:jar:1.17.6 org.testcontainers:yugabytedb:jar:1.17.6 Dependencies: org.testcontainers:jdbc:jar:1.17.6 org.testcontainers:database-commons:jar:1.17.6 org.testcontainers:testcontainers:jar:1.17.6 |
Supported versions | 1.17.6 |
Default Java class | org.testcontainers.jdbc.ContainerDatabaseDriver |
- See the TestContainers documentation for more information
- See TestContainers list of supported databases to check if your chosen database is compatible
jdbc:tc:postgresql:11-alpine://localhost:5432/databasename
- 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