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

Bump github.com/huandu/go-sqlbuilder from 1.27.3 to 1.29.0 #33

Conversation

dependabot[bot]
Copy link
Contributor

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

Bumps github.com/huandu/go-sqlbuilder from 1.27.3 to 1.29.0.

Release notes

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

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

New feature: Support Common Table Expression and ILIKE

What's Changed

  • Implement CTEBuilder and CTETableBuilder to support Common Table Expression (CTE) by @​huandu in #157
  • Add ILIKE helper in SelectBuilder, UpdateBuilder and DeleteBuilder by @​abanoub-fathy in #159

New Contributors

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

Commits
  • 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
  • 2cc1f8c fix: #160 SelectBuilder.With appends table names to FROM
  • ebceb91 Merge pull request #159 from abanoub-fathy/add-ILIKE-helper-method
  • 3282717 Merge pull request #157 from huandu/feature/cte
  • a0af5e4 support multiple tables in a WITH clause
  • 4b8a96c update readme file to add Cond.ILIKE
  • 9969160 add test for ILIKE cond
  • Additional commits viewable 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)

Bumps [github.com/huandu/go-sqlbuilder](https://github.com/huandu/go-sqlbuilder) from 1.27.3 to 1.29.0.
- [Release notes](https://github.com/huandu/go-sqlbuilder/releases)
- [Commits](huandu/go-sqlbuilder@v1.27.3...v1.29.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] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Sep 9, 2024
Copy link
Contributor Author

dependabot bot commented on behalf of github Sep 16, 2024

Superseded by #35.

@dependabot dependabot bot closed this Sep 16, 2024
@dependabot dependabot bot deleted the dependabot/go_modules/github.com/huandu/go-sqlbuilder-1.29.0 branch September 16, 2024 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants