https://kotlinlang.org logo
l

louiscad

05/29/2020, 7:36 AM
Spotted this MPP for Sqlite by @yigit https://github.com/yigit/kotlin-sqlite-bindings Makes me think about @Dominaezzz project https://github.com/Dominaezzz/kotlin-sqlite Maybe a joint effort can be done, or at least sharing some inspiration?
g

gabin

05/29/2020, 7:51 AM
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.
👍 1
g

gabin

05/29/2020, 11:43 AM
wow, sounds promising
k

kpgalligan

05/29/2020, 1:58 PM
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.
☝️ 1
🙄 1
You’d need to ship a different sqlite version
4 Views