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

help: basic example for the web browser #23

Open
Tracked by #74
setop opened this issue Dec 7, 2021 · 3 comments
Open
Tracked by #74

help: basic example for the web browser #23

setop opened this issue Dec 7, 2021 · 3 comments

Comments

@setop
Copy link

setop commented Dec 7, 2021

I try to make a simple web page that : loads sql.js-httpvfs, open the database, have an input text where to enter the SQL query, a button to run the query and an a js function to perform the query and display the result.

All the material I can find here is using node to build the logic but I just want plain JS in an HTML page.

Is there a way to have it in the browser ?

@luciferous
Copy link

Hi @setop,

Have a look at the example from the README. Does that work? If not, what would you like to see that's not already there?

@setop
Copy link
Author

setop commented Sep 8, 2023

Hi @luciferous,

Thanks for your message.

If not, what would you like to see that's not already there?

I'd like to be able to open a text editor and write an HTML page that have:

  • an import of the sql.js-httpvfs module
  • a way to declare which DB to user
  • an input text for the user to input the query
  • a button to submint the query
  • a piece of javascript to invoke sql.js-httpvfs function to process the query against the DB
  • an output textarea or table to diplay the result

without having to install node/npm/npx/webpack.

@luciferous
Copy link

Ok I see. I think you're essentially asking for a beefier demo than the one supplied in /example.

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