is there any way to do `Database.connect` without ...
# exposed
n
is there any way to do
Database.connect
without registering the database globally ? is there a alternative to the
ThreadLocalTransactionManager
?
s
Looking at the code it seems easy to avoid registering it globally. Why do you not want to use
ThreadLocalTransactionManager
?
Oh the constructor is private
n
because i do have a situation where the database user is based on the session (in ktor) and i do not want to accidentally use the threadlocal database in a transaction rather than the correct one i'd rather not have it registered in threadlocal and crash at that point
t
n
thanks, i would probably not have found that