如何在 Quarkus 中选择具有反应式数据源的特定 Postgres 模式

Jai*_*sad 3 quarkus reactive-postgresql-client

今天,通过以下配置,它连接到数据库的默认架构,如何配置以连接到特定架构。 在此输入图像描述

参考 :

https://quarkus.io/guides/reactive-sql-clients#postgresql-2

Any leads will be really helpful.
Run Code Online (Sandbox Code Playgroud)

Jai*_*sad 5

将search_path添加到连接 uri 将从特定模式获取结果。

以下配置有效。

postgresql://localhost:5432/sampledb?search_path=user1

下面是解析数据库配置的类

io.vertx.pgclient.impl.PgConnectionUriParser

谢谢大卫的带领。

参考: https: //vertx.io/docs/vertx-pg-client/java/#_connection_uri