Skip to content

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

Closed
cpainterwakefield opened this issue Oct 11, 2020 · 8 comments
Closed

Ignored pull request #427

cpainterwakefield opened this issue Oct 11, 2020 · 8 comments

Comments

@cpainterwakefield
Copy link
Contributor

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.

@lovasoa
Copy link
Member

lovasoa commented Oct 11, 2020

Hi @cpainterwakefield !
I'm sorry for not answering earlier, and thanks for the heads up. I'll try to merge this today.

@cpainterwakefield
Copy link
Contributor Author

Oh, thank you!

@lovasoa
Copy link
Member

lovasoa commented Oct 11, 2020

I added my comments on the PR 🙂

@lovasoa lovasoa closed this as completed Oct 11, 2020
@cpainterwakefield
Copy link
Contributor Author

Thanks - I will go through these and respond.

@lovasoa
Copy link
Member

lovasoa commented Oct 11, 2020

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.

@lovasoa
Copy link
Member

lovasoa commented Oct 11, 2020

Also, if you could describe your usecase, it would help shape a good api.

@cpainterwakefield
Copy link
Contributor Author

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.

@lovasoa
Copy link
Member

lovasoa commented Oct 11, 2020

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.
And yes, I do agree 100% that the sql parsing should be done by sqlite and not by the client application. I think we can combine the parsing by sqlite and the flexible execution by the client application.

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