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

add SQL.js support #15

Closed
vazra opened this issue Jun 21, 2020 · 1 comment
Closed

add SQL.js support #15

vazra opened this issue Jun 21, 2020 · 1 comment

Comments

@vazra
Copy link
Owner

vazra commented Jun 21, 2020

sql.js is a port of SQLite to Webassembly, by compiling the SQLite C code with Emscripten, with contributed math and string extension functions included. It uses a virtual database file stored in memory, and thus doesn't persist the changes made to the database. However, it allows you to import any existing sqlite file, and to export the created database as a JavaScript typed array.

Sql.js predates WebAssembly, and thus started as an asm.js project. It still supports asm.js for backwards compatibility.

@vazra
Copy link
Owner Author

vazra commented Jun 21, 2020

It won't work now as Knex is not supporting webpack (ref : knex/knex#1128 ) which is embedded with CRA. so the option will be to eject/rewire the CRA to add knex as an external. I don't think that's required for now, as SQL.js will be mostly used by those who are working on Electron/NodeJS application for testing purpose. so closing this.

Please re-open if someone want implement this.

@vazra vazra closed this as completed Jun 21, 2020
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

1 participant