See Database containers for documentation and usage that is common to all database container types.
YugabyteDB supports two APIs.
- Yugabyte Structured Query Language YSQL is a fully-relational API that is built by the PostgreSQL code
- Yugabyte Cloud Query Language YCQL is a semi-relational SQL API that has its roots in the Cassandra Query Language
public class YugabyteDBTest {
@Rule
public YugabyteYSQLContainer container = new YugabyteYSQLContainer("yugabytedb/yugabyte:2.7.2.0-b216");
@Test
public void method() {
String url = container.getJdbcUrl();
... create a connection and run the tests as usual. It also depends on the frameworks being used.
jdbc:tc:yugabyte:2.7.2.0-b216:///yugabyte
public class YugabyteDBTest {
@Rule
public YugabyteYCQLContainer container = new YugabyteYCQLContainer("yugabytedb/yugabyte:2.7.2.0-b216");
@Test
public void method() {
Session session = container.getSession();
... create a connection and run the tests as usual. It also depends on the frameworks being used.
[[TODO]]