Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions docs/src/main/asciidoc/reactive-sql-clients.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,6 @@ Currently, the following database servers are supported:
* Microsoft SQL Server
* Oracle

[NOTE]
====
The Reactive SQL Client for Oracle is considered _tech preview_.

In _tech preview_ mode, early feedback is requested to mature the idea.
There is no guarantee of stability in the platform until the solution matures.
Feedback is welcome on our https://groups.google.com/d/forum/quarkus-dev[mailing list] or as issues in our https://github.com/quarkusio/quarkus/issues[GitHub issue tracker].
====

In this guide, you will learn how to implement a simple CRUD application exposing data stored in *PostgreSQL* over a RESTful API.

NOTE: Extension and connection pool class names for each client can be found at the bottom of this document.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,13 @@ public Liquibase createLiquibase() {
if (liquibaseMongodbConfig.defaultSchemaName().isPresent()) {
database.setDefaultSchemaName(liquibaseMongodbConfig.defaultSchemaName().get());
}
if (liquibaseMongodbConfig.databaseChangeLogTableName().isPresent()) {
database.setDatabaseChangeLogTableName(liquibaseMongodbConfig.databaseChangeLogTableName().get());
}
if (liquibaseMongodbConfig.databaseChangeLogLockTableName().isPresent()) {
database.setDatabaseChangeLogLockTableName(
liquibaseMongodbConfig.databaseChangeLogLockTableName().get());
}
Liquibase liquibase = new Liquibase(parsedChangeLog, resourceAccessor, database);

for (Map.Entry<String, String> entry : liquibaseMongodbConfig.changeLogParameters().entrySet()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,16 @@ public interface LiquibaseMongodbClientConfig {
*/
Map<String, String> changeLogParameters();

/**
* The liquibase change log lock table name. Name of table to use for tracking concurrent Liquibase usage.
*/
Optional<String> databaseChangeLogLockTableName();

/**
* The liquibase change log table name. Name of table to use for tracking change history.
*/
Optional<String> databaseChangeLogTableName();

/**
* The list of contexts
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ quarkus.mongodb.fruit-client.hosts=localhost:27018

quarkus.liquibase-mongodb.users.change-log=liquibase/users.xml
quarkus.liquibase-mongodb.users.migrate-at-start=true
quarkus.liquibase-mongodb.users.database-change-log-table-name=UserChangelog
quarkus.liquibase-mongodb.users.database-change-log-lock-table-name=UserChangelogLock
quarkus.mongodb.users.database=users
quarkus.mongodb.users.hosts=localhost:27019

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,18 @@ public void validateTheIdx() {
.collect(Collectors.toSet());
Assertions.assertTrue(names.contains("emailIdx"));
}

@Test
public void validateChangeLogTableName() {
long entries = mongoClient.getDatabase("users").getCollection("UserChangelog").countDocuments();

Assertions.assertEquals(1, entries);
}

@Test
public void validateChangeLogLockTableName() {
long entries = mongoClient.getDatabase("users").getCollection("UserChangelogLock").countDocuments();

Assertions.assertEquals(1, entries);
}
}
Loading