https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
t

TheOnlyTails

10/25/2023, 5:51 PM
Hi, is there any ORM at all that supports kotlin multiplatform? I've looked around and all the ones I found are either years out of date, JVM-only, or both.
j

jw

10/25/2023, 5:55 PM
If you're not married to the R in ORM then SQLDelight is pretty great
4
t

TheOnlyTails

10/25/2023, 6:13 PM
at this point, my only requirement is that it supports postgres, and sqldelight falls there
j

jw

10/25/2023, 6:15 PM
What is missing for you? Native for windows? Some other platform?
t

TheOnlyTails

10/25/2023, 6:32 PM
I'm building a web server in Ktor that's meant to be run locally on each users computer (this is gonna be used often in places with no internet access), and I wanted to see if I could use Kotlin MMP for it
I know i could use Kotlin/JVM, but shipping native versions of executables seemed better
j

jw

10/25/2023, 6:34 PM
So that's a yes? Windows support on the native driver is tracked here: https://github.com/hfhbd/postgres-native-sqldelight/issues/2
m

Mikhail

10/26/2023, 2:05 AM
I have the same issue - wish to assemble project into single executable. But I suppose using JVM and GraalVM may be better than fully native solution
k

kevin.cianfarini

10/26/2023, 9:08 AM
Check this out for a k/n pgsql driver https://github.com/hfhbd/postgres-native-sqldelight
Also, spicy take, but if something is running locally on an end users device, consider SQLite
14 Views