https://kotlinlang.org logo
#squarelibraries
Title
# squarelibraries
b

brabo-hi

09/25/2023, 10:17 PM
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

Derek Ellis

09/25/2023, 11:07 PM
The sqlite driver is for SQLite only. You should use the JDBC driver
🔥 1
y

Yuliana Poliakova

09/29/2023, 12:45 PM
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

brabo-hi

09/29/2023, 11:57 PM
thank you guys for your help
3 Views