Does that mean that library like Room could be possible to use on other platforms ?
l
louiscad
05/29/2020, 8:02 AM
Library like Room: There's already SqlDelight doing it with https://github.com/touchlab/SQLiter
SqlDelight is a different approach though: You write the SQL, it generates most of the Kotlin, while Room lets you write some of the Kotlin, and generates the implementation with SQL queries.
SQLiter uses a different approach. Early on I figured directly linking to C++ would be a supported option, but it’s not really. SQLiter links to the Kotlin/Native runtime directly. It works fine, but is more of a support hassle. The library itself isn’t very user friendly, but it’s not really designed that way. Using cinterop has been on the maybe list for a while. To discuss.
d
Dominaezzz
05/29/2020, 2:43 PM
I've been planning JVM bindings for a while but haven't gotten around to it.
k
kpgalligan
05/29/2020, 2:43 PM
Same
Android won’t let you bind to it’s sqlite, so the incentive wasn’t super high.