Skip to content

Conversation

wugeer
Copy link
Contributor

@wugeer wugeer commented Sep 11, 2024

fix: #33

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.

/// 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