| [ Web Proxy ] |
| Viewing: https://java.testcontainers.org/supported_docker_environment/../../modules/databases/yugabytedb/ | [Back] [Original] |
Testcontainers module for YugabyteDB
See Database containers for documentation and usage that is common to all database container types.
YugabyteDB supports two APIs.
final YugabyteDBYSQLContainer ysqlContainer = new YugabyteDBYSQLContainer(
"yugabytedb/yugabyte:2.14.4.0-b26"
)
jdbc:tc:yugabyte:2.14.4.0-b26:///databasename
See JDBC for documentation.
final YugabyteDBYCQLContainer ycqlContainer = new YugabyteDBYCQLContainer(
"yugabytedb/yugabyte:2.14.4.0-b26"
)
.withUsername("cassandra")
.withPassword("cassandra")
Add the following dependency to your pom.xml/build.gradle file:
testImplementation "org.testcontainers:testcontainers-yugabytedb:2.0.5"
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>testcontainers-yugabytedb</artifactId>
<version>2.0.5</version>
<scope>test</scope>
</dependency>
| Web Proxy Viewer | New URL | Original Page |