-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Ignored pull request #427
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
Comments
Hi @cpainterwakefield ! |
Oh, thank you! |
I added my comments on the PR 🙂 |
Thanks - I will go through these and respond. |
The main question is around the ideal API. I feel like a single function that does everything is not what the library should be doing. |
Also, if you could describe your usecase, it would help shape a good api. |
Right, I started out to build it as a more modular thing, but I recall that I got into some issues with it that made me go the direction of one monolithic function. Let me look back at the code to see if I can remember where I ran into problems. My use case is very different, I would guess, than most. I'm working on educational software, where students will be encouraged to play in a sandbox database and try whatever they want. As part of that, they should be able to execute scripts with multiple SQL queries. I want to be able to give them very detailed feedback for each query. I have a kludge that maybe works most of the time to parse a block of SQL into separate queries, but it is tricky to get right (especially with comments!), and there may be constructs that will not work with my kludge. It seems like the right thing to do is to let the sqlite library parse the block. The current API doesn't give any fine-grained control on that. I'll look more closely at your iterator suggestion, that sounds very promising. |
It's great to see sql.js used for education. I've seen that before, and I myself started working on this project at the university. |
Hi maintainers: can I please get an answer on my proposed pull request ( #413 )? I submitted it a month and a half ago, and I haven't heard anything. I have a project that is completely stalled because I need the functionality I implemented in the PR; I just need to know: will you incorporate my PR (I can make changes if desired), or not? If not, I will fork and get back on track with my project, but I'd prefer to keep using sql.js!
Thank you.
The text was updated successfully, but these errors were encountered: