alec
10/05/2020, 12:59 PMzalewski.se
10/06/2020, 8:36 AMzalewski.se
10/13/2020, 9:03 AMalec
10/13/2020, 10:55 AMzalewski.se
10/16/2020, 3:49 PMactual fun getDriver(): SqlDriver = NativeSqliteDriver(
DatabaseConfiguration(
name = "",
version = version,
create = { connection ->
wrapConnection(connection) { DB.Schema.create(it) }
},
upgrade = { connection, oldVersion, newVersion ->
wrapConnection(connection) { DB.Schema.migrate(it, oldVersion, newVersion) }
},
inMemory = true
)
We passed an empty string as name. It was working fine with previous version but apparently since 1.4 it causes error. You shouldn’t allow empty string for the name if it’s not working. The error message in this case is a little bit misleading. Also providing the name fixed the issue no table found
but seems like inMemory = true
behaviour also has changed. DB is not cleaned automatically between different tests, is that expected now?alec
10/16/2020, 3:51 PMkpgalligan
10/16/2020, 4:16 PM