Skip to content
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

Merged
merged 4 commits into from
Sep 17, 2024

Conversation

wugeer
Copy link
Contributor

@wugeer wugeer commented Sep 11, 2024

fix: #33

src/formatter.rs Outdated Show resolved Hide resolved
Copy link
Owner

@shssoichiro shssoichiro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@shssoichiro shssoichiro merged commit 4fcfa0d into shssoichiro:master Sep 17, 2024
5 checks passed
Copy link

@BilelGho BilelGho left a 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 {
Copy link

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

Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ignore keywords for uppercase=True
3 participants