Hi, pretty new to exposed, a quick question -- can...
# exposed
m
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
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.
m
Ok. Thank you for the explanation!