Is there "any" sample project on using SQLiter lib...
# multiplatform
a
Is there "any" sample project on using SQLiter library in KMM? I have been searching a lot for any sample but unable to find one. I know it is not recommended to be used directly, but it fits my use-case better since our whole project has lots of legacy raw queries and migration process would be painful when using SQLDelight.
k
You could use a raw
SqlDriver
to issue queries in SQLDelight if you'd like
a
@kevin.cianfarini but that returns SQLDelight's SQLCursor which doesn't have getColumnIndex function.
k
SqlCursor offers functions to get items from a column but requires that you know their type. Like
SqlCursor.getLong(index: Int)
.
It should be noted that SQLiter is only for Kotlin/Native, not for MPP. you won't be able to use it in the JVM or JS for example.