Laurence Muller
05/09/2022, 7:04 PMdialect = "app.cash.sqldelight:sqlite-3-35-dialect:2.0.0-alpha02"
With: implementation 'com.github.requery:sqlite-android:3.36.0'
and this is working quite well:
val driver = AndroidSqliteDriver(
schema = MyDatabase.Schema,
context = this,
name = "test.db",
factory = RequerySQLiteOpenHelperFactory()
)
alec
05/09/2022, 7:51 PMalec
05/09/2022, 7:52 PMalec
05/09/2022, 7:52 PM.sq
filesLaurence Muller
05/09/2022, 7:55 PMLaurence Muller
05/09/2022, 9:40 PM{
....
implementation 'com.github.requery:sqlite-android:3.36.0'
implementation 'app.cash.sqldelight:android-driver:2.0.0-alpha02'
// implementation 'app.cash.sqldelight:sqlite-json-module:2.0.0-alpha02' // Doesn't seem to be needed?
}
sqldelight {
MyDatabase {
packageName = "com.example.hellojson"
dialect = "app.cash.sqldelight:sqlite-3-35-dialect:2.0.0-alpha02"
}
}
It seems like i dont need to explicitly include that json module (unless i'm including it in the wrong way)? Without it, i can still use json1 (json_extract
) in the app when implemented as in the screenshot above 🤔alec
05/09/2022, 9:47 PMjson_each
or exposing json function results in projections