Looking at using Exposed. After reading the docs I...
# exposed
s
Looking at using Exposed. After reading the docs I am not entirely sure where I should be calling
Database.connect
. I think it should be called one time when the application starts. But after I call it, do I need to reference it to interact with the
db
. All the examples I've seen don't use the
Database
object directly. How do the table objects get a handle to the current
Database
?
Ok, looks like a
ThreadLocalTransactionManager
manager is used.
j
I think you should usually only need to use the db object directly if you wish to connect to multiple databases from the same app
👍 1