Browser support WIP using SQL.js#774
Open
brody2consult wants to merge 3 commits into
Open
Conversation
added 3 commits
April 23, 2018 19:07
(sql-memory-growth.js from SQL.js) XXX with MAJOR TODO ITEMS: - update license statement with SQL.js dependency - deal with failing & skipped test cases - update documentation - also test browser platform with (WebKit) Web SQL - SQL.js with R-Tree enabled
XXX TBD: selfTest NOT WORKING on browser platform, due to lack of actual persistence
|
Definitely going to need persistence. Otherwise, we might as well just use |
Owner
Author
|
@humblecoder this plugin would only use SQL.js on the browser platform, with missing persistence, to support easier testing for app developers. Motivation for using SQL.js, with lack of persistence, is described in #576 (comment). Support for browser platform with persistence working is possible, I can think of the following alternatives:
(with some adaptations) Feature priority is given to paid customers. For more information please contact: sales@litehelpers.net |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.jswhich 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.