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

lsp: single client + sequential requests #133

Merged
merged 5 commits into from
Nov 14, 2023
Merged

Conversation

joacoc
Copy link
Contributor

@joacoc joacoc commented Nov 3, 2023

Fix for #113.

  1. After the user triggers the SQL command, the extension will parse the SQL code, split the SQL code into individual statements, and run each statement independently. If one statement fails, the process ends.

  2. All the statements written by the user run in a single SQL client session. Therefore, the client behaves like a SQL shell session. If the user runs BEGIN; in one file, they can issue COMMIT; or ROLLBACK; from any other file.

Tagging @chuck-alt-delete and @SangJunBak to make sure this behavior conforms to expectations.

@joacoc joacoc requested a review from bobbyiliev as a code owner November 3, 2023 14:45
@joacoc joacoc requested review from bobbyiliev and removed request for bobbyiliev November 3, 2023 14:46
Copy link
Contributor

@bobbyiliev bobbyiliev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat, I like this solution!

@SangJunBak
Copy link

I like this solution! It's pretty much 1:1 with how TablePlus does it too~

Screen.Recording.2023-11-03.at.11.28.08.AM.mov

@joacoc
Copy link
Contributor Author

joacoc commented Nov 3, 2023

@SangJunBak Yes! I checked exactly in their client to make sure the behavior was similar to other clients. The only difference is that we check the syntax before. Thank you!

@joacoc joacoc merged commit 7afdb79 into main Nov 14, 2023
1 check passed
@joacoc joacoc deleted the single-file-transaction branch November 14, 2023 10:13
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

Successfully merging this pull request may close these issues.

3 participants