so I’m trying to figure out where the client side db gets stored actually. If I create something like this
var mcTasks = {};
mcTasks.webdb = {};
//OPENING THE DATABASE
mcTasks.webdb.db = null;
mcTasks.webdb.open = function() {
var dbSize = 5 * 1024 * 1024; // 5MB
mcTasks.webdb.db = openDatabase('todo', '1.0', 'todo manager', dbSize);
}
Where does this get stored? in cache? and if so that means that if I clear the cache the info gets lost right?
I’m trying to figure out which solution is better sqlLite or window.localStorage, any help is appreciated. thanks!
It gets stored in a location on the client machine, as a persistent file.
This is separate from the cache, so clearing the cache shouldn’t have an effect on the stored data.
Where exactly the file is stored depends on the implementation.