-
How can I get a connection from the pool and use it as a PostgresqlConnection? I would like to call a prepared statement like this:
But in this case I get this exception: Is it possible to create a The only workaround I found was to create a new connection on the fly like this:
But in this case what is the point of having a connection pool if I cannot use it? Probably I misunderstand something, and it is just some misconfiguration. Thank you for your help in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can unwrap the native connection via |
Beta Was this translation helpful? Give feedback.
You can unwrap the native connection via
Wrapped.unwrap(…)
method. The pooled connection object implementsio.r2dbc.spi.Wrapped
.