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

Parse SQL script files using external lib #205

Open
amochin opened this issue Dec 19, 2023 · 0 comments
Open

Parse SQL script files using external lib #205

amochin opened this issue Dec 19, 2023 · 0 comments

Comments

@amochin
Copy link
Collaborator

amochin commented Dec 19, 2023

Fixing #184, I slightly improved splitting the SQL script files into statements - now some more statements blocks of a PL/SQL script for Oracle are processed correctly. However, I found out that I was just scratching on the surface.

There are so many different statements, operators and SQL dialects, that there are extra projects, dedicated to splitting a script file into a list of statements.
There is one, which I tried - sqlparse.

It worked pretty well for a SQL script with multiple PL/SQL blocks for MSSQL.
It wasn't so good with a script for Oracle though (see create_stored_procedures script files in the tests folder).
Anyway, it might be reasonable to with the current implementation of the Execute SQL Script keyword to using this external parser - and improve parsing Oracle scripts directly there.

@amochin amochin added this to the 1.5.0 milestone Dec 19, 2023
@amochin amochin changed the title Parse SQL script files using external service Parse SQL script files using external lib Dec 19, 2023
@amochin amochin removed this from the next_version milestone Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant