Hi, pretty new to exposed, a quick question -- can I put
dbConnect = Database.Companion.connect()
in my SpringBoot
PostConstruct
function of service, and keep using it forever? Will it timeout or get expired?
t
tapac
11/02/2019, 4:04 PM
Database
instance is just a holder of connection settings not the connection itself. So yes, you can hold an instance and share/use it across an application code.