The code is currently reading something in order ...
DoAnything() { OpenTheDatabase()
However, the database object never closes. This is alarming.
The database opens as follows:
var db = window.openDatabase( ... paramters ... );
There is no .closeDatabase function, or the documentation is incomplete. I thought that might be enough:
db=null;
I see that sqlite3_close(sqlite3*) and int sqlite3_close_v2(sqlite3*) , but I'm not sure how to apply them in this case.
How to close the database and is it necessary?
source share