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)
将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
| 归档时间: |
|
| 查看次数: |
1832 次 |
| 最近记录: |