-
Notifications
You must be signed in to change notification settings - Fork 29
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
fix: Ignore keywords for uppercase=True #53
Conversation
ea120a7
to
85eb6d6
Compare
85eb6d6
to
094f4d7
Compare
more rustc! Co-authored-by: Josh Holmer <[email protected]>
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.
Thanks!
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.
Hi. First time reviewer but I believe this is a breaking change and required a new major version.
@@ -15,16 +15,16 @@ mod tokenizer; | |||
|
|||
/// Formats whitespace in a SQL string to make it easier to read. | |||
/// Optionally replaces parameter placeholders with `params`. | |||
pub fn format(query: &str, params: &QueryParams, options: FormatOptions) -> String { | |||
pub fn format(query: &str, params: &QueryParams, options: &FormatOptions) -> String { |
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.
This is a breaking change for libraries like sqlx
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.
The fact that a field was added to FormatOptions
and Copy
was removed from it makes it difficult to revert the breaking change without reverting this entire PR. I think I will move forward with releasing the new version as semver breaking instead. Thanks.
fix: #33