You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NOTE: Liquibase needs a database either in the connection string or with the `quarkus.mongodb.database` property.
83
84
84
-
NOTE: Liquibase MongoDB is configured using a connection string, we do our best to craft a connection string that matches the MongoDB client configuration but if some configuration properties are not working you may consider adding them directly into the `quarkus.mongodb.connection-string` config property.
85
+
NOTE: By default, Liquibase MongoDB is configured to use the default MongoDB client Quarkus creates, but you can configure the extension to use a named client by setting `quarkus.liquibase-mongodb.mongo-client-name`.
85
86
86
87
Add a changeLog file to the default folder following the Liquibase naming conventions: `{change-log}`
87
88
YAML, JSON and XML formats are supported for the changeLog.
Copy file name to clipboardExpand all lines: extensions/liquibase-mongodb/runtime/src/main/java/io/quarkus/liquibase/mongodb/LiquibaseMongodbFactory.java
// Every MongoDB client configuration must be added to the connection string, we didn't add all as it would be too much to support.
90
-
// For reference, all connections string options can be found here: https://www.mongodb.com/docs/manual/reference/connection-string/#connection-string-options.
Copy file name to clipboardExpand all lines: extensions/liquibase-mongodb/runtime/src/main/java/io/quarkus/liquibase/mongodb/runtime/LiquibaseMongodbConfig.java
+5
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,11 @@ public interface LiquibaseMongodbConfig {
23
23
@WithDefault("true")
24
24
booleanenabled();
25
25
26
+
/**
27
+
* Mongodb client name to use to connect to database, defaults to the default mongodb client.
Copy file name to clipboardExpand all lines: extensions/liquibase-mongodb/runtime/src/main/java/io/quarkus/liquibase/mongodb/runtime/LiquibaseMongodbRecorder.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ public Supplier<LiquibaseMongodbFactory> liquibaseSupplier(LiquibaseMongodbConfi
Copy file name to clipboardExpand all lines: integration-tests/liquibase-mongodb/src/test/java/io/quarkus/it/liquibase/mongodb/NativeFruitResourceTestIT.java
0 commit comments