Skip to content

Commit

Permalink
update: build info
Browse files Browse the repository at this point in the history
Signed-off-by: Srinivasa Vasu <srinivasan.surprise@gmail.com>
  • Loading branch information
srinivasa-vasu committed Nov 14, 2021
1 parent 45273e7 commit b0c70e2
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions docs/modules/databases/yugabytedb.md
Expand Up @@ -14,7 +14,7 @@ YugabyteDB supports two APIs.
public class YugabyteDBTest {

@Rule
public YugabyteYSQLContainer container = new YugabyteYSQLContainer("yugabytedb/yugabyte:2.7.2.0-b216");
public YugabyteYSQLContainer container = new YugabyteYSQLContainer("yugabytedb/yugabyte:2.9.1.0-b140");

@Test
public void method() {
Expand All @@ -33,7 +33,7 @@ public class YugabyteDBTest {
public class YugabyteDBTest {

@Rule
public YugabyteYCQLContainer container = new YugabyteYCQLContainer("yugabytedb/yugabyte:2.7.2.0-b216");
public YugabyteYCQLContainer container = new YugabyteYCQLContainer("yugabytedb/yugabyte:2.9.1.0-b140");

@Test
public void method() {
Expand All @@ -43,4 +43,23 @@ public class YugabyteDBTest {
```

## Adding this module to your project dependencies
[[TODO]]

Add the following dependency to your `pom.xml`/`build.gradle` file:

```groovy tab='Gradle'
testImplementation "org.testcontainers:yugabytedb:{{latest_version}}"
```

```xml tab='Maven'
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>yugabytedb</artifactId>
<version>{{latest_version}}</version>
<scope>test</scope>
</dependency>
```

!!! hint
Adding this Testcontainers library JAR will not automatically add the Yugabytedb driver JAR to your project.
You should ensure that your project has the Yugabytedb driver as a dependency, if you plan on using it.
Refer to the driver page [YSQL](https://docs.yugabyte.com/latest/integrations/jdbc-driver/) and [YCQL](https://docs.yugabyte.com/latest/reference/drivers/ycql-client-drivers/) for instructions.

0 comments on commit b0c70e2

Please sign in to comment.