s3rius
04/01/2023, 6:34 PMinterface 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?