dukhttp icon indicating copy to clipboard operation
dukhttp copied to clipboard

Sqlite Integration

Open mikeptweet opened this issue 3 years ago • 4 comments

Any chance you could splice in sqlite so that it is available within the Javascript context. I've been looking for a simple http server like this but alas, it is beyond my skill set to do it myself.

Thanks ... and great work!

mikeptweet avatar Mar 24 '21 08:03 mikeptweet

@mikeptweet not that I mind to, but this is probably overblowing the amount of time I'm ready to invest into this (essentially) Proof-of-Concept project. If you are up for it - I'll happily review and merge your Pull Request for sqlite support.

Thank you for kind words!

indutny avatar Mar 27 '21 17:03 indutny

Well, this probably wasn't a response that you expected. If this of any help, I can guide you through what's required for this work.

indutny avatar Apr 01 '21 03:04 indutny

@mikeptweet What's your use case ?

gengjiawen avatar Apr 01 '21 11:04 gengjiawen

I use the sqlite command shell extensively to script various database tasks. Currently I use the command shell utilities to pre/post data coming into and flowing out of the sqlite command shell. I'd like the addition of a lightweight scripting capability to augment this process. I currently use this sqlite extension module (https://github.com/abiliojr/sqlite-js) to leverage duktape but it doesn't provide the functionality I need because it exists only as a function within sqlite. I want the reverse ... the ability to use sqlite from within duktape (something as simple as a single query function like (https://github.com/lspgn/edge-sql).

I know I can do this in node/deno, but I like how lightweight duktape is and the ability to call it over http is awesome.

Thanks.

mikeptweet avatar Apr 02 '21 08:04 mikeptweet