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

Usage with sql.js #14

Closed
oskarer opened this issue May 10, 2016 · 2 comments
Closed

Usage with sql.js #14

oskarer opened this issue May 10, 2016 · 2 comments

Comments

@oskarer
Copy link

oskarer commented May 10, 2016

I have a case where I need to run specific SQLite syntax not available in WebSQL, as well as run it inside a browser. Was thinking if it's possible to run node-websql with sql.js out of the box, instead of using the node-dependent sqlite3 module.

Imagined this would work by just replacing sqlite3 with sql.js.. tried it out but didn't seem to work. No errors thrown and no luck in debugging either; 0cd0b89.

Any ideas on what could be wrong here? Guessing this could be a neat feature to include in main repo as well if it works good. Thanks.

@nolanlawson
Copy link
Owner

node-websql as written is pretty heavily reliant on the API exposed by the node-sqlite3 module (details here).

Luckily there is a custom API that can be used to delegate to your SQLite implementation of choice, which is undoubtedly what you would need to do in order to hook node-websql to sql.js. Hope that helps!

@nolanlawson
Copy link
Owner

Closing because I think this is out of scope; the custom API should be able to handle this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants