What is the equivalent of these "db scopes" in Jdbi and JDBC, in terpal-sql?
jdbi.open().use { db ->
val orgDao = dbtx.attach(OrganizationDao::class.java)
val orgs = orgDao.listOrganizations()
// ...
}
db.database.connection.use { jdbc ->
jdbc.prepareStatement("....").execute()
}
Are these connections? Or sessions? Or transactions? (nah, they are for sure not transactions; transactions are opened in a different way)