Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve API - redesign - IN PROGRESS #862

Open
jacobg opened this issue May 3, 2019 · 7 comments
Open

improve API - redesign - IN PROGRESS #862

jacobg opened this issue May 3, 2019 · 7 comments

Comments

@jacobg
Copy link

jacobg commented May 3, 2019

Update from @brodybits: redesign with preview now available is now discussed in: brodycj/ask-me-anything#3


This issue is to initiate a general discussion about improving the plugin API beyond WebSql. Some potential goals of a new API would be:

  • cut loose the baggage of the deprecated, and soon-to-be defunct WebSql API standard
  • more control over transactions (db.transaction() is very limited)
  • more fluent, less opionated, and easier-to-understand
  • promise based
  • multiple connections (concurrency) - separate issue to be created on that

A more general description of the purpose might be to: create a core transport and connectivity layer from the web view to sqlite, with all the expressivity that sql offers, in an intuitive api, and using modern javascript tools, such as promises and typescript.

Perhaps this might need to become a new plugin altogether?

For anyone also interested in a new API, please add your feedback and +1's, in order to let gauge demand.

@brodybits

@brodycj
Copy link
Contributor

brodycj commented May 9, 2019

Thanks @jacobg, I definitely want to look into this. May be related to #548 (possible redesign).

@brodycj
Copy link
Contributor

brodycj commented Jun 7, 2019

In case the redesign (#548) comes with a new API, the new API would likely be pretty simple and low-level. I would very strongly favor keeping the fluent API in higher-level JavaScript libraries, outside the Cordova plugin, that supports use in both Cordova and web browser.

@brodycj
Copy link
Contributor

brodycj commented Jun 30, 2019

I would also like to clarify that I would likely need an investment in order to justify the several months of time that would be needed for this work. As already communicated in private, I would be looking for a certain level of investment (keeping discussion private for now) to justify this work at this point. I would be happy to consider multiple investors, with a minimum investment of 20% each.

@brodycj
Copy link
Contributor

brodycj commented Aug 30, 2019

FYI I have already started the redesign based on Android-sqlite-evcore-native-driver-free, more details and maybe some updated pricing should be coming soon.

@brodycj brodycj changed the title improve API improve API - with a redesign implementation Sep 13, 2019
@brodycj
Copy link
Contributor

brodycj commented Sep 13, 2019

FYI I have already started the redesign based on Android-sqlite-evcore-native-driver-free
[...]

Here is the new experimental plugin version with GPL v3 and new premium commercial licensing options (updated February 2020):

with some promise wrapper, demo app, and other related projects in (updated February 2020): https://github.com/json-sqlite-engine-pro-wip-archive

Here are the next steps I can think of right now:

At this point I am looking for some investment (keeping in private discussion for now) to justify and prioritize this work, would be happy to work with up to 3 a limited number of companies. Anyone interested may contact [email protected] for more information and discussion.

@brodycj
Copy link
Contributor

brodycj commented Mar 4, 2020

At this point I am working on a new Android JAR library, with a new Android NDK component, that should enable better concurrency in order to fulfill a specific customer need. One open question is whether or not to enable access from another, custom plugin on Android. I may need 2-3 more weeks to have something ready to demonstrate.

@brodycj
Copy link
Contributor

brodycj commented Mar 6, 2020

I have started working on the redesigned plugin, with a preview demo already available, as discussed in this new issue here: brodycj/ask-me-anything#3

I would like to continue discussions in the new issue.

@brodycj brodycj changed the title improve API - with a redesign implementation improve API - redesign - IN PROGRESS Mar 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants