-
Notifications
You must be signed in to change notification settings - Fork 223
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
Add aliasPrefix
option
#533
Conversation
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.
Make sure to include some tests too!
2a75cde
to
a7e7170
Compare
Co-authored-by: Nico Gallinal <nicoabie@gmail.com>
Co-authored-by: Nico Gallinal <nicoabie@gmail.com>
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.
Almost there!
@jasonwoodland there is an alias-namespace test file, please make sure to add a test there as well. |
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.
Excellent work! Squashing and merging as soon as the pipeline succeeds!!!!
Description
Adds an optional
prefixAliases
property to the join-monster options object. When set to true, table and column aliases are prefixed with "$" to avoid conflicting with commonly used single-letter aliases defined in where/join subqueries.References
$
or similar #532Testing
No change when prefixAliases is omitted. When specified, generated SQL queries contain the prefixed string.
Checklist