hello guys, can we use sqldelight on a KMM project...
# squarelibraries
b
hello guys, can we use sqldelight on a KMM project with
postgresql
for the JVM ?
👌 1
should we use
app.cash.sqldelight:sqlite-driver
or
app.cash.sqldelight:jdbc-driver
d
The sqlite driver is for SQLite only. You should use the JDBC driver
🔥 1
y
Yes, put
Copy code
implementation("app.cash.sqldelight:runtime:2.0.0")
in commonMain and then required drivers in each module. For Jvm for example
Copy code
implementation("app.cash.sqldelight:jdbc-driver:2.0.0")
                implementation("org.postgresql:postgresql:42.6.0")
b
thank you guys for your help