Hi all on the version 2.x, how to use named query ...
# squarelibraries
b
Hi all on the version 2.x, how to use named query instead of anonymous
?
DELETE FROM customer WHERE customer_id = :customerId;
It doesn’t look working for this version but was working on version 1.x
a
which dialect?
b
Sqllight
a
what does your gradle file look like
b
it’s a KMM project on The shared module
Copy code
plugin{ id("app.cash.sqldelight") }

sqldelight {
    database("AppDatabase") {
        packageName = "com.example.shared.db"
        dialect = "app.cash.sqldelight:sqlite-3-35-dialect:2.0.0-alpha01"
    }
}

val commonMain by getting {
dependencies {
implementation("app.cash.sqldelight:runtime:$sqlDelightVersion")
                implementation("app.cash.sqldelight:coroutines-extensions:$sqlDelightVersion")
}
}

val androidMain by getting {
dependencies {
implementation("app.cash.sqldelight:android-driver:$sqlDelightVersion")
}
}

val iosMain by creating {
dependencies {
implementation("app.cash.sqldelight:native-driver:$sqlDelightVersion")
}
}
on android module
Copy code
buildscript{
dependencies {
classpath("app.cash.sqldelight:gradle-plugin:$sqlDelightVersion") }}
a
thanks, can you also give me the stacktrace that the compiler crashes with when you do a gradle build
and then put that in a issue on github so i dont loose track of it