About SQLDelight: I'm using inline value classes f...
# squarelibraries
s
About SQLDelight: I'm using inline value classes for all the id columns of my database. They're all built the same, basically this:
Copy code
interface LongId : Parcelable { val id: Long } // all implementing this interface

@JvmInline
@Parcelize
value class ProfileId(override val id: Long) : LongId
But I'm forced to provide adapters for all these id classes, and apparently I have to do that for any id column. So with a small db with just 8 tables and a few relations between them, the database creation is already a monster of just providing basically the same adapter in a ton of places. See image, and how practically every required adapter is for an id. Is there a way to "teach" SQLDelight once about how to work with a class? Or that value classes are automatically stored via their underlying types?