Skip to content

build(deps): bump github.com/huandu/go-sqlbuilder from 1.39.0 to 1.41.0#106

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/github.com/huandu/go-sqlbuilder-1.41.0
Open

build(deps): bump github.com/huandu/go-sqlbuilder from 1.39.0 to 1.41.0#106
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/github.com/huandu/go-sqlbuilder-1.41.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github May 4, 2026

Bumps github.com/huandu/go-sqlbuilder from 1.39.0 to 1.41.0.

Release notes

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

v1.41.0

  • [NEW] Add an option NoExpand to change default field "expand" behavior for backward compatibility. See #237 for details.

NOTE: Starting from v1.40.0, the Struct utility type defaults to expanding non-primitive struct fields. This change caused unexpected behavior for some users. To address this without reverting the features introduced in v1.40.0, we have introduced a NoExpand configuration. When set to true, all fields will default to no expansion (preserving legacy behavior). You can still opt-in to expansion for specific fields by using the fieldopt:"expand" tag.

Full Changelog: huandu/go-sqlbuilder@v1.40.0...v1.41.0

v1.40.0

What's new

Struct field / db tag improvements

Support treating a db tag on a struct-typed field as a database alias and expanding its exported fields as aliased columns. This makes it possible to build JOIN projections like post.id, post.title, etc., from a nested struct field and keeps Addr/Scan behavior working by allocating nested pointers when scanning.

Note: This change preserves existing semantics for scalar-like structs (types implementing sql.Scanner/driver.Valuer/time.Time, etc) — they are not expanded.

See issue #233 for more details.

Oracle SELECT behavior

Use OFFSET ... FETCH pattern for Oracle SELECT pagination.

Potential Oracle compatibility note: the change to use OFFSET ... FETCH for Oracle pagination may affect environments using older Oracle versions that do not support this syntax. Please verify compatibility with your Oracle version before upgrading.

Thanks and acknowledgements

Thanks to @​zhangyongding for the Oracle pagination improvements.

Full Changelog: huandu/go-sqlbuilder@v1.39.0...v1.40.0

Commits
  • 4483721 fix #237: add option NoExpand to control default field "expand" behavior
  • caa42d4 fix #236: New fieldopt "noexpand" to treat a nested struct as one column
  • e118b20 fix #234: field names in INSERT INTO should not include table name
  • dd31c4a Support nested struct db aliases in Struct (ref #233)
  • 86715e9 Merge pull request #231 from zhangyongding/chore-oralce-select-offset-fetch
  • 9bae871 Update select.go
  • 2158ba5 change the Oracle select to use OFFSET...FETCH
  • 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 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.39.0 to 1.41.0.
- [Release notes](https://github.com/huandu/go-sqlbuilder/releases)
- [Commits](huandu/go-sqlbuilder@v1.39.0...v1.41.0)

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

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 May 4, 2026
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.

0 participants