-
Notifications
You must be signed in to change notification settings - Fork 612
add support for custom operators in postgres #1302
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
Conversation
Fixes apache#1298 Fixes sqlpage/SQLPage#372 Closes apache#1299
Pull Request Test Coverage Report for Build 9407605747Details
💛 - Coveralls |
Pull Request Test Coverage Report for Build 9407833047Details
💛 - Coveralls |
Pull Request Test Coverage Report for Build 9407854163Details
💛 - Coveralls |
Pull Request Test Coverage Report for Build 9407871536Details
💛 - Coveralls |
Pull Request Test Coverage Report for Build 9407962709Details
💛 - Coveralls |
Pull Request Test Coverage Report for Build 9408152778Details
💛 - Coveralls |
@alamb , could you have a look ? The PR is quite simple, it extends the tokenizer to be able to parse postgresql custom operators. Existing non-postgres dialects are not affected, but new dialects have the ability to add support for their own custom operators. I (and @amrutadotorg) need that for SQLPage. |
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, this looks great! cc @alamb
Co-authored-by: Joey Hain <[email protected]>
Pull Request Test Coverage Report for Build 9411642947Details
💛 - Coveralls |
Pull Request Test Coverage Report for Build 9411672059Details
💛 - Coveralls |
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.
// + - * / < > = ~ ! @ # % ^ & | ` ? | ||
|
||
// Here, we test the ones used by common extensions | ||
let operators = [ |
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.
😮 -- very cool -- thanks @lovasoa
Thank you for merging ! This will open a world of new possibilities in SQLPage, using new postgres extensions. |
Fixes #1298
Fixes sqlpage/SQLPage#372
Closes #1299