Backup Room database
This doesn’t answer the original question How can I properly re-open room db after I close it? However, moving everything to the original database file is what you want to do, then you don’t have to close the database in the first place. You can instead force a checkpoint using the wal_checkpoint pragma. Query the … Read more