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

chore(deps): bump github.com/huandu/go-sqlbuilder from 1.28.1 to 1.30.0 #1591

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 30, 2024

Bumps github.com/huandu/go-sqlbuilder from 1.28.1 to 1.30.0.

Release notes

Sourced from github.com/huandu/go-sqlbuilder's releases.

New feature: Add "IS [NOT] DISTINCT FROM" comparison operators to Cond

What's New

  • Add "IS [NOT] DISTINCT FROM" comparison operators to Cond #169
  • Automatically build compatible operators for a flavor.
    • If a database system does not support an operator,Cond can automatically build compatible syntax as a substitute.
    • For example, calling IsDistinctFrom("field", value) automatically determines which expression to output based on the current database flavor. If the flavor is PostgreSQL, it builds "field IS DISTINCT FROM $1". For MySQL, which does not support this operator, it builds the functionally equivalent expression "NOT field ?".

Full Changelog: huandu/go-sqlbuilder@v1.29.1...v1.30.0

New feature: Common Table Expression enhancement

Following discussions in issue #161, @​arikkfir and I have tackled several key gaps in the Common Table Expression (CTE) related APIs:

  • Implemented support for the WITH RECURSIVE clause;
  • Enabled the use of CTE tables in JOIN and WHERE clauses, excluding FROM;
  • Incorporated WITH support in UPDATE and DELETE statements.

To introduce these features, we've made substantial API updates designed to be backward compatible, ensuring no disruption to existing implementations. However, all users of the CTE APIs should be cognizant of these enhancements.

  • CTEQuery vs CTETable:
    • In prior versions, a quirk in the design automatically appended all table names defined in CTEBuilder to the FROM clause of a SELECT statement, which hindered the exclusive use of CTE tables in JOIN or WHERE clauses.
    • Based on the conversation in issue #163, we proposed two solutions and selected the most viable. To summarize, the new API CTEQuery constructs CTE queries without any unintended consequences; meanwhile, CTETable retains its original functionality, effectively turning the previous side effect into a deliberate feature.
  • Introduction of CTEQueryBuilder:
    • CTEQueryBuilder is now the sole builder for crafting CTE query expressions, replacing the previous approach.
    • CTETableBuilder has been repurposed as a type alias for CTEQueryBuilder and is deprecated. It is advised that this alias may be phased out in upcoming releases.

What's New

  • Recursive CTE support added by @​arikkfir in #162
  • Overhaul of the CTE API by @​huandu in issue #163
  • A new method SelectMore in SelectBuilder allows for the addition of further columns to a SELECT statement post the Select() method call.

New Contributors

Full Changelog: huandu/go-sqlbuilder@v1.28.0...v1.29.0

Commits
  • 5d9be7f reduce count of memory allocations in Cond.And/Or/Not
  • e114413 update doc for IsDistinctFrom and IsNotDistinctFrom
  • 975bcfd fix #169: support IS [NOT] DISTINCT FROM operator
  • fa64168 update docs in README and godoc
  • e6de572 Merge pull request #168 from vallahaye/167-add-logical-not-and-not-ilike-comp...
  • fc176ca feat(cond): add logical NOT and NOT ILIKE operators
  • d6f429c refs #164: new API SelectMore to add more cols to SELECT after calling Select()
  • 01acaab fix #163: CTE API refactory; see issue for details
  • 8cd72ce Merge pull request #162 from arikkfir/add-recursive-cte-support
  • 4b034a7 feature #161: add support for recursive CTEs
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added area/dependencies Pull requests that update a dependency file dependency/go Pull requests that update Go code labels Sep 30, 2024
@chrisgacsal
Copy link
Contributor

@dependabot rebase

@dependabot dependabot bot force-pushed the dependabot/go_modules/github.com/huandu/go-sqlbuilder-1.30.0 branch from cc490d9 to a51a4f9 Compare September 30, 2024 06:58
Bumps [github.com/huandu/go-sqlbuilder](https://github.com/huandu/go-sqlbuilder) from 1.28.1 to 1.30.0.
- [Release notes](https://github.com/huandu/go-sqlbuilder/releases)
- [Commits](huandu/go-sqlbuilder@v1.28.1...v1.30.0)

---
updated-dependencies:
- dependency-name: github.com/huandu/go-sqlbuilder
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/go_modules/github.com/huandu/go-sqlbuilder-1.30.0 branch from a51a4f9 to 3bb17de Compare September 30, 2024 07:00
@chrisgacsal chrisgacsal merged commit 880e4ad into main Sep 30, 2024
16 checks passed
@chrisgacsal chrisgacsal deleted the dependabot/go_modules/github.com/huandu/go-sqlbuilder-1.30.0 branch September 30, 2024 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dependencies Pull requests that update a dependency file dependency/go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant