hi all, i was wondering why `room` is not moving ...
# multiplatform
b
hi all, i was wondering why
room
is not moving to kmm ?
c
I assume that it is because Room is a Google framework specifically designed to address Android issues. I dont think it is a priority for the Android team to expand it outside of where it is now. If you want multiplatform support, you can look at sqldelight.
1
b
we are currently ising
sqldelight
i think the community could work to port room on
KMM
it could bring ios team to be interested in it
j
What specifically do you need from Room that SQL Delight does not provide? Other than the added boilerplate of having to manually maintain the database models rather than having them automatically generated based on your schema. blob grin
👀 1
b
we have android app using room, we are evaluating how to start migrating some parts into KMM, so the current choice we have is to use sqldelight
j
Oh based on your statement above it sounded like you were currently using SQL Delight
b
we have one app that is using sqldelight and another app using room
j
Sounds like you want an ORM
Even room makes you write SQL, an ORM wouldn't
Anyway we're never doing your first 1 or 2. 1 isn't something SQL does and we honor SQL first and most.
b
Yes, I DO want an ORM! Do you know of a good one for Android and/or KMM 😄
j
No. ORMs are awful
b
hehe
j
For your second 1, you don't have to instantiate an adapter for each column but you do supply one. This means you can alter the storage for the same type in different tables or even different columns
Since you only configure this once per database and not once per query it's not really worth optimizing for only to make the case where you want different behaviors harder.
b
Right. You can do that with Room too (supply an adapter for a single table), but Room also allows you to supply the adapter once at the database level, and any table in the database that has a column of that type will use the adapter. So as you add new tables/columns, you don’t have to remember to “go supply the adapter”.
Anyway we're never doing your first 1 or 2. 1 isn't something SQL does and we honor SQL first and most.
I understand and respect that. Still, if I could pick one feature to be added, that would be it.