The src/windows/WebSqlProxy.jsuse this to create a db var, but this is window and db is very common word to make reference a database opened, for example in README example:
var db = openDatabase("Todo", "", "Todo manager", dbSize, function() {
console.log('db successfully opened or created');
});
Other example is when project has the db.js as dependency, the db.js use window.db too.
Using the module.exports as in cordova-plugin-file the db in WebSqlProxy is scoped in module
The
src/windows/WebSqlProxy.js
usethis
to create adb
var, butthis
is window and db is very common word to make reference a database opened, for example in README example:Other example is when project has the db.js as dependency, the db.js use window.db too.
Using the
module.exports
as in cordova-plugin-file the db in WebSqlProxy is scoped in module