2021-05-31

Parse Android Room Generated Schema to Actual SQLite Script

I want to create a .db file to pre populate my Android Room database but the database/schema is huge so I am trying to find a way not to do it manually. Basically I want to do the following:

  1. Generate the database schema for Room (done!)
  2. Generate the SQLite commands from the schema without needing to be reading the schema and copying and pasting all the scripts found in it
  3. Create the database on some SQL client
  4. Populate the database with the default data and generate a .db file from it to add into my app to be used by Room.

I need help on step 2. Thanks a lot!



from Recent Questions - Stack Overflow https://ift.tt/3wOWQmF
https://ift.tt/eA8V8J

No comments:

Post a Comment