reactive-pg-client
reactive-pg-client copied to clipboard
Connection in read-only mode
Hi,
Is there a way to put the connection in read-only mode ?
Thank's
What is connection read-only mode in Postgres? Do you mean read-only transactions(https://www.postgresql.org/docs/current/sql-set-transaction.html)?
Yes, this is what I mean
Have you tried scheduling a query to control it directly?
What I am currently doing is adding "SET TRANSACTION READ ONLY" for each Sql query. I want to do this using the client API. Is it possible ?
Thank's
There's no specific API for this, I wonder does it make any difference between calling such an API and a query :-)
I mean , open transations in read only mode using reactive-pg-client ;-)
I agreed we could add such APIs for the transactions characteristics, you can check the https://github.com/eclipse-vertx/vertx-sql-client/issues/432
It would be interesting ( at least for me :-) )
Thank you