-
Notifications
You must be signed in to change notification settings - Fork 221
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
Implement ToSql
trait which displays AST as SQL text format
#554
Conversation
Codecov Report
@@ Coverage Diff @@
## main #554 +/- ##
==========================================
- Coverage 93.80% 93.54% -0.26%
==========================================
Files 185 188 +3
Lines 12551 12790 +239
==========================================
+ Hits 11774 11965 +191
- Misses 777 825 +48
Continue to review full report at Codecov.
|
Will continue this PR once PR #551 is merged. Changed status to draft until then.. |
I'm open to renaming the ExprDecode module (and the decode function) names. I they are the best I could think of at the time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Here... could you split the PR into two?
Two independent tasks exist in the single PR.
- provide sql representation to gluesql ast
- add description column to show indexes from table command
OK. Will do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now, I've checked everything.
With these changes, we can merge this meaningful changes to the main.
Thanks really a lot!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beautiful.. I'd really appreciate this.
There exists lots of cases which ToSql
can be used to provide much better info to db users.
e.g.
Better more detailed error message, ..
Previously, it was not possible to provide readable info about AST but now ToSql
can directly hit the needs!
Thanks a lot again for this meaningful contribution.
All looks great, merging 👍 👍 👍
ToSql
trait which displays AST as SQL text format
Implementing this so that we can add a definition/description column for the show indexes command.
For example, if we have the following expression;
this would be converted to:
id + num