dave08
02/16/2023, 1:08 PMConnectionFactory
in R2dbcDatabase(...)
? Like when shutting down a Ktor server in Kubernetes, will all the connections be closed automatically? Otherwise, I'd need some kind of close()
to clean them up on SIGTERM
or SIGINT
.Toshihiro Nakamura
02/16/2023, 11:39 PMdave08
02/17/2023, 4:07 AMdave08
02/17/2023, 4:07 AMToshihiro Nakamura
02/17/2023, 1:05 PMio.r2dbc.pool.ConnectionPool
is the subtype of io.r2dbc.spi.ConnectionFactory
. So you can pass it to the R2dbcDatabase constructor.
The ConnectionFactory
managed by Komapper will be made available in the next version.
https://github.com/komapper/komapper/pull/894dave08
02/22/2023, 2:53 PMToshihiro Nakamura
02/22/2023, 10:05 PM