Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In followup to discussion in #576 (initial browser support WIP) I have started again using kripken / sql.js, actually
sql-memory-growth.js
which is now fetched from edge WIP version of litehelpers / Cordova-sqlite-storage-dependencies. This is a major feature for the planned June 2018 release (#773).This is a WORK IN PROGRESS in the cb-browser-sqljs-wip branch with a number of missing items. @brodybits expects to force push updates to this WIP branch.
To try this in a TEST project, be sure to completely remove any existing sqlite plugin and then add the WIP version branch as follows (using the following Cordova CLI):
NOTE that this is NOT expected to work in multi-page apps due to lack of actual persistence. (It SHOULD be possible to implement a workaround solution for persistence across page changes, at least in theory. I can look further into this idea if there is sufficient demand from the user community.)
P.S. I actually had to use sql-memory-growth.js to prevent "cannot enlarge memory arrays" errors when running the test suite.
P.S.S. It should be possible to implement pre-populated database feature on the browser platform using the File API, at least in theory. I can look further into this idea if there is sufficient demand from the user community.