Is there a go to persistence library for KMP or ar...
# multiplatform
b
Is there a go to persistence library for KMP or are there several options depending on the use case?
m
It depends a bit on your use case and on the platforms that you want to support. Examples would be, e.g.: https://github.com/sqldelight/sqldelight or https://developer.android.com/kotlin/multiplatform/room
j
Also Datastore, Okio FileSystem + kotlinx.serialization
Depends on your needs
multiplatform-settings for simple things
💯 1
1
b
@Michael Paus We looked at this, one thing that we saw as a drawback with this is if we wanted to use WHERE and ORDER BY for user filters we would have to write each individual query combination of possible
s
You could parameterize your queries and use
RawQuery
to use Room for that case https://developer.android.com/reference/androidx/room/RawQuery
👍 2