Hello,I found such usage of `json_each()` is not v...
# squarelibraries
a
Hello,I found such usage of
json_each()
is not valid in
.sq
file, will it be supported in the future?
b
Isn’t it part of the most recent 2.0 release? https://github.com/cashapp/sqldelight/issues/1276
a
Thanks, I checked again and ensure I use the lastest version, and configurate it as following:
Copy code
val sqlDelight = "2.0.0-rc01"
val androidMain by getting {
   dependencies {
     implementation("app.cash.sqldelight:android-driver:$sqlDelight")
   }
}

sqldelight {
    databases {
        create("AppDatabase") {
            packageName.set("...")
            schemaOutputDirectory.set(file("..."))
            verifyMigrations.set(true)
            deriveSchemaFromMigrations.set(true)
            dialect("app.cash.sqldelight:sqlite-3-38-dialect:$sqlDelight")
            module("app.cash.sqldelight:sqlite-json-module:$sqlDelight")
        }
    }
}
the IDE plugin and gradle plugin version is 2.0.0-rc01, but in the editor it report "No table found with name json_each". Have I missed something?
a
it might be ide plugin bug, does the build work?
a
Thanks, after I restarted and rebuilded, it works well.