How to close SQLite database?


#1

Hello everybody,

I managed to load my SQLite database from assets and also want to all the user to completely wipe the SQLite database and reload a new one. When I do delete the database, reload it and want to re-open it, I get a Disk IO error and the database is empty although properly copied to the location. When I close the app and reload it, the new database is there.

*** SQL Error ***
SQL Query: SELECT tbl_name FROM sqlite_master WHERE type = 'table';
SQL Params: []
SQL Error: Error: Error code 10: disk I/O error

My assumption would be that the issue is that the SQLite database is not closed. Is there any chance to close it?

Thanks, Jan


closed #2

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.