Skip to content

build(deps): bump github.com/stephenafamo/bob from 0.30.0 to 0.40.2 - #1975

Closed
dependabot[bot] wants to merge 1 commit into
developmentfrom
dependabot/go_modules/github.com/stephenafamo/bob-0.40.2
Closed

build(deps): bump github.com/stephenafamo/bob from 0.30.0 to 0.40.2#1975
dependabot[bot] wants to merge 1 commit into
developmentfrom
dependabot/go_modules/github.com/stephenafamo/bob-0.40.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 18, 2025

Copy link
Copy Markdown
Contributor

Bumps github.com/stephenafamo/bob from 0.30.0 to 0.40.2.

Release notes

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

v0.40.2

Fixed

  • Fixed Scanner/Valuer test gen for types defined in the models package.
  • Fix issue with randomization test when enum is only used in an array.
  • Fix issue with using CompareExpr with values that are null.
  • Fix issue with imports in query tests.
  • Fix issue with detecting the columns in a CTE in bobgen-psql.
  • Properly detect the end of a function call in postgres qury parser.

Full Changelog: stephenafamo/bob@v0.40.1...v0.40.2

v0.40.1

Fixed

  • Fixed bug in preloading

Full Changelog: stephenafamo/bob@v0.40.0...v0.40.1

v0.40.0

Highlights

Code generation is now modular and depends on plugins.

See the plugins configuration documentation to understand how to choose what is generated..

Added

  • Made code generation modular by relying on built-in plugins that can be enabled or disabled in the configuration.
    • dbinfo: Generates code for information about each database. Schemas, tables, columns, indexes, primary keys, foreign keys, unique constraints, and check constraints.
    • enums: Generates code for enums in a separate package, if there are any present.
    • models: Generates code for models. Depends on enums.
    • factory: Generates code for factories. Depends on models.
    • dberrors: Generates code for unique constraint errors. Depends on models.
    • where: Generates type-safe code for WHERE clauses in queries. Depends on models.
    • loaders: Adds templates to the models package to generate code for loaders e.g models.SelectThenLoad.Table.Rel().
    • joins: Adds templates to the models package to generate code for joins e.g models.SelectJoin.Table.LeftJoin.Rel.
    • queries: Generates code for queries.
  • Added new types.Uint64 type that sends values to the database as strings. This is necessary because using uint64 directly can cause an overflow if the value exceeds the maximum value of an int64. This is a limitation imposed by database/sql/driver.Valuer interface.
  • Added support for pgvector types during code generation.
    • pgvector.Vector
    • pgvector.HalfVector
    • pgvector.SparseVector

Changed

  • Enums are now imported directly from a new generated enums package. This makes it easier to use enums in other packages without having to depend on the models package.
  • Preload functions now take a custom orm.PreloadRel struct instead of reusing orm.Relationship.

... (truncated)

Changelog

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

[v0.40.2] - 2025-08-16

Fixed

  • Fixed Scanner/Valuer test gen for types defined in the models package.
  • Fix issue with randomization test when enum is only used in an array.
  • Fix issue with using CompareExpr with values that are null.
  • Fix issue with imports in query tests.
  • Fix issue with detecting the columns in a CTE in bobgen-psql.
  • Properly detect the end of a function call in postgres qury parser.

[v0.40.1] - 2025-08-14

Fixed

  • Fixed bug in preloading

[v0.40.0] - 2025-08-13

Added

  • Made code generation modular by relying on built-in plugins that can be enabled or disabled in the configuration.
    • dbinfo: Generates code for information about each database. Schemas, tables, columns, indexes, primary keys, foreign keys, unique constraints, and check constraints.
    • enums: Generates code for enums in a separate package, if there are any present.
    • models: Generates code for models. Depends on enums.
    • factory: Generates code for factories. Depends on models.
    • dberrors: Generates code for unique constraint errors. Depends on models.
    • where: Generates type-safe code for WHERE clauses in queries. Depends on models.
    • loaders: Adds templates to the models package to generate code for loaders e.g models.SelectThenLoad.Table.Rel().
    • joins: Adds templates to the models package to generate code for joins e.g models.SelectJoin.Table.LeftJoin.Rel.
    • queries: Generates code for queries.
  • Added new types.Uint64 type that sends values to the database as strings. This is necessary because using uint64 directly can cause an overflow if the value exceeds the maximum value of an int64. This is a limitation imposed by database/sql/driver.Valuer interface.
  • Added support for pgvector types during code generation.
    • pgvector.Vector
    • pgvector.HalfVector
    • pgvector.SparseVector

Changed

  • Enums are now imported directly from a new generated enums package. This makes it easier to use enums in other packages without having to depend on the models package.
  • Preload functions now take a custom orm.PreloadRel struct instead of reusing orm.Relationship.
  • By default, factories are now generated in ./factory instead of ./models/factory.
  • Outputs are now determined by plugins which can be enabled or disabled in the configuration.
  • UniqueConstraintErrors are now generated in a separate dberrors package instead of being generated in the models package.
  • Tests in the generated models package are no longer generated in a separate models_test package. There is no longer any circular dependency since tests for the unique constraint errors are generated in the dberrors package.
  • orm.Columns has been moved to expr.ColumnsExpr.
  • orm.NewColumns has been moved to expr.NewColumnsExpr.
  • <Table>.Columns() is removed. The columns expression is now expected to be embedded in the Columns field of the <Table> struct.
  • <dialect>.View and <dialect>.Table now take an additional type parameter for the columns type. This is assigned to the Columns field with NewView/NewTable functions.

... (truncated)

Commits
  • 028664a Update CHANGELOG for v0.40.2 release
  • 939075e Properly detect end of function in postgres query parser
  • dcd1866 Promote query args group children if cannot be multiple
  • e4018fc Update postgres golden file
  • 72e62ee Properly detect the source in CTEs for Postgres
  • 3e5ee2e Fix issue in loaders template
  • 022d8b8 Enable oldstable in GitHub CI now that 1.25 is released
  • 67ab757 Fix issues with compare expr and query tests
  • 9a7ff2b Fix randomization test of enum used only in an array
  • 27580d2 Fixed Scanner/Valuer test gen for types defined in models
  • 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/stephenafamo/bob](https://github.com/stephenafamo/bob) from 0.30.0 to 0.40.2.
- [Release notes](https://github.com/stephenafamo/bob/releases)
- [Changelog](https://github.com/stephenafamo/bob/blob/main/CHANGELOG.md)
- [Commits](stephenafamo/bob@v0.30.0...v0.40.2)

---
updated-dependencies:
- dependency-name: github.com/stephenafamo/bob
  dependency-version: 0.40.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies TYPE: update of dependencies go Pull requests that update Go code labels Aug 18, 2025
@coderabbitai

coderabbitai Bot commented Aug 18, 2025

Copy link
Copy Markdown
Contributor

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Join our Discord community for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@dependabot @github

dependabot Bot commented on behalf of github Sep 3, 2025

Copy link
Copy Markdown
Contributor Author

Superseded by #2004.

@dependabot dependabot Bot closed this Sep 3, 2025
@dependabot
dependabot Bot deleted the dependabot/go_modules/github.com/stephenafamo/bob-0.40.2 branch September 3, 2025 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies TYPE: update of dependencies go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants