wouterdoeland
JdbcSQLException: Database is already closed (to disable automatic closing at VM shutdown, add ";DB_CLOSE_ON_EXIT=FALSE" to the db URL)
@Before fun setupDatabase() { Database.connect("jdbc:h2:mem:test;DB_CLOSE_ON_EXIT=FALSE;DB_CLOSE_DELAY=-1", "org.h2.Driver") // create tables } @After fun tearDownDatabase() { transaction { exec("SHUTDOWN;") } }
tapac
DB_CLOSE_ON_EXIT=FALSE
transaction
after
A modern programming language that makes developers happier.