Hi! I'm starting with kotlin+exposed, how does the...
# server
z
Hi! I'm starting with kotlin+exposed, how does the Database object got passed to transaction {} method?
Copy code
Database.connect("jdbc:<postgresql://localhost:5432/testdb>", driver = "org.postgresql.Driver", user = "..", password = "...")
    transaction {
and which is the common approach to initialise Database, so I don't create it in each service method? Thanks in advance
d
Try #exposed channel
z
thanks