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 the all-dependencies group with 2 updates #5

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

dependabot[bot]
Copy link
Contributor

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

Bumps the all-dependencies group with 2 updates: github.com/huandu/go-sqlbuilder and modernc.org/sqlite.

Updates github.com/huandu/go-sqlbuilder from 1.27.3 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

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
  • 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
  • Additional commits viewable in compare view

Updates modernc.org/sqlite from 1.30.1 to 1.33.1

Commits

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 <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps the all-dependencies group with 2 updates: [github.com/huandu/go-sqlbuilder](https://github.com/huandu/go-sqlbuilder) and [modernc.org/sqlite](https://gitlab.com/cznic/sqlite).


Updates `github.com/huandu/go-sqlbuilder` from 1.27.3 to 1.30.0
- [Release notes](https://github.com/huandu/go-sqlbuilder/releases)
- [Commits](huandu/go-sqlbuilder@v1.27.3...v1.30.0)

Updates `modernc.org/sqlite` from 1.30.1 to 1.33.1
- [Commits](https://gitlab.com/cznic/sqlite/compare/v1.30.1...v1.33.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Sep 25, 2024
@johnpatek johnpatek merged commit 80b3fc5 into master Sep 25, 2024
1 check passed
@johnpatek johnpatek deleted the dependabot/go_modules/all-dependencies-383944cf6d branch September 25, 2024 15:49
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 go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant