ursus
04/24/2024, 10:50 PMAfterVersion ...
varargs)
The docs (https://cashapp.github.io/sqldelight/2.0.2/jvm_sqlite/migrations/) say
val driver: SqlDriver = JdbcSqliteDriver(
url = "jdbc:sqlite:test.db",
properties = Properties(),
schema = Database.Schema,
callbacks = arrayOf(
AfterVersion(3) { driver -> driver.execute(null, "INSERT INTO test (value) VALUES('hello')", 0) }
)
)
just to stick the same AfterVersion
object's I already have for android driver and pass them here.
However build fails due to schema
& callbacks
being unknown. Looking at sources (2.0.2) there's no such constructor.