GitHub user ppokalyukhina created a discussion: Configuring separate DB 
connection for query plugin

Hello,

I am reaching out with a question regarding how to set up a **separate database 
connection for the query plugin** in Pekko Persistence R2DBC.

I have tried multiple approaches from the documentation, but nothing seems to 
work. It appears that no matter how I configure the query plugin to use a 
custom database connection, Pekko ends up overriding my settings with the 
default connection somewhere internally.

I encounter errors such as:
`missing 'url' parameter` (even though I explicitly set host, port, and 
database)
`no pg_hba.conf entry for host "MY_HOST", user "MY_USERNAME", database "MY_DB", 
no encryption` (even though SSL is enabled in my config).

Additionally, I cannot find any concrete, working example of how to configure 
this in `application.conf`. The only documentation I found is 
[here](https://pekko.apache.org/docs/pekko-persistence-r2dbc/current/config.html),
 but applying it directly does not work.

If I missed something, could you please point me to the correct documentation 
or provide an example? 
Ideally, I am looking for something similar to Akka’s “multiple plugins” guide: 
[link](https://doc.akka.io/libraries/akka-persistence-r2dbc/current/config.html#multiple-plugins).

Many thanks in advance for your help!
Best regards,
Polina

GitHub link: https://github.com/apache/pekko-persistence-r2dbc/discussions/301

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to