Skip to content

chore: bump github.com/stephenafamo/bob from 0.42.0 to 0.43.0#1086

Open
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/go_modules/github.com/stephenafamo/bob-0.43.0
Open

chore: bump github.com/stephenafamo/bob from 0.42.0 to 0.43.0#1086
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/go_modules/github.com/stephenafamo/bob-0.43.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Apr 30, 2026

Bumps github.com/stephenafamo/bob from 0.42.0 to 0.43.0.

Release notes

Sourced from github.com/stephenafamo/bob's releases.

v0.43.0

Added

  • Added PostgreSQL MERGE statement support with full syntax including:
    • MERGE INTO ... USING ... ON ... with table aliases and ONLY modifier
    • WHEN MATCHED, WHEN NOT MATCHED, WHEN NOT MATCHED BY SOURCE clauses
    • UPDATE, INSERT, DELETE, DO NOTHING actions
    • Support for AND condition in WHEN clauses
    • OVERRIDING SYSTEM VALUE and OVERRIDING USER VALUE for INSERT actions
    • RETURNING clause support (PostgreSQL 17+) (thanks @​atzedus)
    • Note: the SQL parser used for sql-to-code generation does not yet support MERGE statements
  • Added psql.SetVersion, psql.GetVersion, and psql.VersionAtLeast functions for context-based PostgreSQL version management (thanks @​atzedus)
  • Added Table.Merge() method for ORM-style MERGE operations with automatic RETURNING * for PostgreSQL 17+ (thanks @​atzedus)
  • Added mm package with modifiers for building MERGE queries (mm.Into, mm.Using, mm.WhenMatched, mm.WhenNotMatched, mm.WhenNotMatchedBySource, etc.) (thanks @​atzedus)
  • Added enum_format configuration option to control enum value identifier formatting. Options: "title_case" (default, e.g., InProgress) or "screaming_snake_case" (e.g., IN_PROGRESS).
  • Added Unqualified() method to generated column structures that returns columns without table alias/prefix. (thanks @​atzedus)
  • Added PreloadCount and ThenLoadCount to generate code for preloading and then loading counts for relationships. (thanks @​jacobmolby)
  • MySQL support for insert queries executing loaders (e.g., InsertThenLoad, InsertThenLoadCount). (thanks @​jacobmolby)
  • Added overwritable hooks that are run before the exec or scanning test of generated queries. This allows seeding data before the test runs.
  • Added bob.Each function to iterate over query results (range-over-func). (thanks @​toqueteos)
  • Added support for the VALUES statement in MySQL, PostgreSQL, and SQLite. (thanks @​manhrev)
  • Added MariaDB compatibility check in gen/bobgen-mysql (thanks @​dumdev25)
  • Added ALL, SOME, ANY expressions for MySQL and PostgreSQL dialects. Added EXISTS expression for all dialects. (thanks @​manhrev)
  • Added a customizable MySQL and PostgreSQL driver image setting for bobgen-sql. (thanks @​manhrev)

Fixed

  • Fix pgx driver Commit() returning nil instead of pgx.ErrTxClosed when the transaction is already closed (e.g., rolled back by context expiry). This prevented silent data loss by correctly propagating the error to the caller. (thanks @​wucm667)
  • Fix self-referencing relationship back-references so generated preload/load helpers no longer create cyclic parent links. (thanks @​atzedus)
  • Fix collisions for preloader alias generation. Replaced RandInt with NextUniqueInt (thanks @​atzedus)
  • Fix an issue where the random function of aliased custom types were not being used in generated query tests.
  • Properly recognize placeholders in LIMIT and OFFSET when generating queries for PostgreSQL.
  • Throw an error on an empty SET clause during SQL generation rather than sending invalid syntax to database. (thanks @​Xaeroxe)
  • Fix MySQL Insert().One()/All()/Cursor() using SELECT * instead of explicit model columns when re-fetching inserted rows, consistent with PostgreSQL/SQLite RETURNING. (thanks @​tak848)

New Contributors

Full Changelog: stephenafamo/bob@v0.42.0...v0.43.0

Changelog

Sourced from github.com/stephenafamo/bob's changelog.

[v0.43.0] - 2026-04-29

Added

  • Added PostgreSQL MERGE statement support with full syntax including:
    • MERGE INTO ... USING ... ON ... with table aliases and ONLY modifier
    • WHEN MATCHED, WHEN NOT MATCHED, WHEN NOT MATCHED BY SOURCE clauses
    • UPDATE, INSERT, DELETE, DO NOTHING actions
    • Support for AND condition in WHEN clauses
    • OVERRIDING SYSTEM VALUE and OVERRIDING USER VALUE for INSERT actions
    • RETURNING clause support (PostgreSQL 17+) (thanks @​atzedus)
    • Note: the SQL parser used for sql-to-code generation does not yet support MERGE statements
  • Added psql.SetVersion, psql.GetVersion, and psql.VersionAtLeast functions for context-based PostgreSQL version management (thanks @​atzedus)
  • Added Table.Merge() method for ORM-style MERGE operations with automatic RETURNING * for PostgreSQL 17+ (thanks @​atzedus)
  • Added mm package with modifiers for building MERGE queries (mm.Into, mm.Using, mm.WhenMatched, mm.WhenNotMatched, mm.WhenNotMatchedBySource, etc.) (thanks @​atzedus)
  • Added enum_format configuration option to control enum value identifier formatting. Options: "title_case" (default, e.g., InProgress) or "screaming_snake_case" (e.g., IN_PROGRESS).
  • Added Unqualified() method to generated column structures that returns columns without table alias/prefix. (thanks @​atzedus)
  • Added PreloadCount and ThenLoadCount to generate code for preloading and then loading counts for relationships. (thanks @​jacobmolby)
  • MySQL support for insert queries executing loaders (e.g., InsertThenLoad, InsertThenLoadCount). (thanks @​jacobmolby)
  • Added overwritable hooks that are run before the exec or scanning test of generated queries. This allows seeding data before the test runs.
  • Added bob.Each function to iterate over query results (range-over-func). (thanks @​toqueteos)
  • Added support for the VALUES statement in MySQL, PostgreSQL, and SQLite. (thanks @​manhrev)
  • Added MariaDB compatibility check in gen/bobgen-mysql (thanks @​dumdev25)
  • Added ALL, SOME, ANY expressions for MySQL and PostgreSQL dialects. Added EXISTS expression for all dialects. (thanks @​manhrev)
  • Added a customizable MySQL and PostgreSQL driver image setting for bobgen-sql. (thanks @​manhrev)

Fixed

  • Fix pgx driver Commit() returning nil instead of pgx.ErrTxClosed when the transaction is already closed (e.g., rolled back by context expiry). This prevented silent data loss by correctly propagating the error to the caller. (thanks @​wucm667)
  • Fix self-referencing relationship back-references so generated preload/load helpers no longer create cyclic parent links. (thanks @​atzedus)
  • Fix collisions for preloader alias generation. Replaced RandInt with NextUniqueInt (thanks @​atzedus)
  • Fix an issue where the random function of aliased custom types were not being used in generated query tests.
  • Properly recognize placeholders in LIMIT and OFFSET when generating queries for PostgreSQL.
  • Throw an error on an empty SET clause during SQL generation rather than sending invalid syntax to database. (thanks @​Xaeroxe)
  • Fix MySQL Insert().One()/All()/Cursor() using SELECT * instead of explicit model columns when re-fetching inserted rows, consistent with PostgreSQL/SQLite RETURNING. (thanks @​tak848)
Commits
  • bd793b0 Update CHANGELOG.md for v0.43.0
  • cd5e547 Merge pull request #661 from wucm667/fix/pgx-tx-commit-error
  • eaaea91 fix(pgx): return ErrTxClosed from Commit instead of swallowing it
  • febd197 Merge pull request #660 from atzedus/refactor/merge-when-chain-api
  • e822e6e refactor(psql/mm): replace WHEN clause mods with fluent chain API
  • f7bbde2 Merge pull request #623 from atzedus/merge-psql-operation
  • 90236b9 docs(changelog): note missing MERGE support in sql-to-code parser
  • 2305e36 Merge branch 'main' into merge-psql-operation
  • 049ae7a Merge pull request #659 from atzedus/bugfix-658
  • d8410bc docs(changelog): add entry for self-referencing back-reference fix
  • 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 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/stephenafamo/bob](https://github.com/stephenafamo/bob) from 0.42.0 to 0.43.0.
- [Release notes](https://github.com/stephenafamo/bob/releases)
- [Changelog](https://github.com/stephenafamo/bob/blob/main/CHANGELOG.md)
- [Commits](stephenafamo/bob@v0.42.0...v0.43.0)

---
updated-dependencies:
- dependency-name: github.com/stephenafamo/bob
  dependency-version: 0.43.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 Apr 30, 2026
Copilot AI review requested due to automatic review settings April 30, 2026 10:24
@dependabot dependabot Bot requested a review from a team as a code owner April 30, 2026 10:24
@dependabot dependabot Bot review requested due to automatic review settings April 30, 2026 10:24
@github-project-automation github-project-automation Bot moved this to Pending Review in SBOMscanner Apr 30, 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 kind/chore

Projects

Status: Pending Review

Development

Successfully merging this pull request may close these issues.

0 participants