How to select a specific Postgres schema with reactive datasource in Quarkus #26761
-
Today with the below configuration it is connecting to the default schema of a db , how to configure to connect to a specific schema. quarkus.datasource.db-kind = postgresql here by default it is fetching data from default/public schema , now how do u connect to say schema user1 within sampledb. how can we do this through quarkus reactive datasource configuration . It is possible through plain PGSimpleDataSource PGSimpleDataSource ds = new PGSimpleDataSource(); references :
Any help or suggestion would be really helpful |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Adding search_path to the connection uri will fetch results from specific schema. postgresql://localhost:5432/sampledb?search_path=user1 |
Beta Was this translation helpful? Give feedback.
Adding search_path to the connection uri will fetch results from specific schema.
postgresql://localhost:5432/sampledb?search_path=user1