-
Notifications
You must be signed in to change notification settings - Fork 2
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
Parsing PLSQL store procs #4
Comments
Thanks! I haven't tested with STORED_PROCEDURE entries, but happy to add that functionality. Some questions for you:
|
Thanks for your quick reply!
Thanks, |
Hey, qq on handling queries and keywords. I see in some cases, similar to the store procedure case that for some keywords it will not recognize it as a query. In case it is not recognized would it be possible to create a new top level entry for such queries that could not be parsed and add the tokens there ? This would be very helpful, otherwise I will have to split the tokens' array on ';' and do that separately. As an example, this parses the first INSERT query but will not detect the select * from test_type inside the for loop, and the previous ';' and 'for' will appear in tokens: `
` Let me know what you think. Thanks, |
I've implemented parsing for stored procedure calls and control flow statements like I haven't fully tested this and I will need to implement it for other SQL dialects as well. For now, I've released this functionality as an alpha build. You can install it using the following command:
Give it a try and let me know if this has everything you need. 🤞 EDIT: I forgot to add, for stored procedures and function calls, you can use the new |
Hi, great library! QQ on parsing with SQLDialect.PLSQL - is there any specific setup needed to detect STORED_PROCEDURE entries ?
I can see the lines with store procs skipped, but they appear at the end of the tokens array, including ';'.
The text was updated successfully, but these errors were encountered: