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

Deal with multiple statements at once for all kinds of connections #27

Open
luisfvieirasilva opened this issue May 4, 2023 · 0 comments

Comments

@luisfvieirasilva
Copy link

Right now (after this PR is merger) we have three kinds of connections: file://, ws:// and http://. Each one of them has a different behavior when we query multiple statements at once. For instance, if I run select 1; select 2;

  • file://: It's just run the first statement and silently ignores the other ones, so just select 1; would be executed. ps: for this one we're using sqlite3 driver.
  • ws://: It doesn't accept multiple statements at once and returns an error instead of executing
  • http://: It accepts multiple statements, running both select 1; and select 2;. User can call NextResultSet to get all the results.

The idea is to standardized this pattern, following http behavior. That is the closest one to go database/sql standard

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