Upgrade of sql delight from 1.5.5 to 2.0.0 facing issue in schema type #5195
Unanswered
kunalkumar1993
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have upgraded the library from 1.5.5 - 2.0.0 follow all the step what has been given in the documentation but getting issue in
AndroidSqliteDriver(schema = Database.Schema, context = application, name = DB_NAME, callback = object : AndroidSqliteDriver.Callback(Database.Schema) {
override fun onOpen(db: SupportSQLiteDatabase) {
db.setForeignKeyConstraintsEnabled(true) // enabling foreign key constraints for the Android SQLite driver.
}
})
below is the description of the issue :
Type mismatch.
Required:
SqlSchema
Found:
SqlSchema<QueryResult.Value>
Plugin is id 'app.cash.sqldelight' version '2.0.0'
Driver is app.cash.sqldelight:android-driver:2.0.0-alpha05
previously it was app.cash.sqldelight:sqlite-driver:2.0.0
but it was not identifying
AndroidSqliteDriver this class so have switch to alpha05
Kindly help on this
Beta Was this translation helpful? Give feedback.
All reactions