Joel
07/17/2020, 9:29 PMDatabase.connect
is the default db? This is inconvenient when working with Spring Boot because bean creation order is undefined.hichem fazai
07/17/2020, 11:07 PMJoel
07/17/2020, 11:16 PMhichem fazai
07/17/2020, 11:33 PMDatabase.connect
in your code?Joel
07/17/2020, 11:47 PMDatabase.connect
is considered the default connection if you call transaction
without a db argument.ThreadLocal
? unsure how that works with coroutines)tapac
07/20/2020, 1:33 PMDatabase.connect
? Do you work with different databases?Joel
07/20/2020, 1:55 PMtapac
07/20/2020, 7:38 PMfun <T> primaryTransaction(body : Transaction.()->T) = transaction(primaryDbInstance) { body() }
Joel
07/20/2020, 9:38 PMhichem fazai
07/21/2020, 6:46 AMJoel
07/23/2020, 3:22 PM