I have a SQLite DB which I cannot change or migrate and need to map a NUMERIC
column to my Kotlin class using Room. What do I need to use as a data type of the field in Kotlin class? When using Boolean, Integer, Double, String, it fails with similar error message:
Expected:
TableInfo{name='calendars', columns={monday=Column{name='monday', type='REAL', affinity='4', ...}
Found:
TableInfo{name='calendars', columns={monday=Column{name='monday', type='NUMERIC', affinity='
EDIT: I suppose it's possible to update the database and change column type. But I still want to know if there is a way to map NUMERIC
with Room.