Can a compose multiplatform room database be popul...
# room
p
Can a compose multiplatform room database be populated with a .db sqlite file? In the documentation they say this:
Copy code
Pre-package Database
The following APIs to create a RoomDatabase using an existing database (i.e. a pre-packaged database) are not available in common and are thus not available in other platforms other than Android. These APIs are:
RoomDatabase.Builder.createFromAsset
RoomDatabase.Builder.createFromFile
RoomDatabase.Builder.createFromInputStream
RoomDatabase.PrepackagedDatabaseCallback
We intend to add support for pre-packaged databases in a future version of Room.
Does this mean that if I have a .db file with content can't use it for populate the room database in Desktop etc... using Room multiplatform?
p
can't believe they don't want to implement it and link a project from internet that is copying data, which I'm not sure is the same than prepopulating the database. Maybe that behaviour can be achieved with similar code, but I'm dissapointed with room multiplatform documentation and current status