It's not bad choice to use h2 with mysql mode on i...
# exposed
t
It's not bad choice to use h2 with mysql mode on in unit tests. Another option is to use something like:
Copy code
fun withTables ( vararg tables: Table, statement: Transaction.() -> Unit) {
   Database.connect()
            transaction {
                SchemaUtils.create(*tables)
                try {
                    statement()
                    commit()
                } finally {
                    SchemaUtils.drop (*tables)
                }
            }
        }
}