NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Go modules, #1060 by repository stars
Latest stable
v0.50.0
Last release 1 months ago
06 Oct 2026
Ships fairly regularly
a new release about every 1 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
1 version withdrawn
withdrawn after publishing
5 years old
337 releases · first in 2022
Drag across the ruler to compare, or tap a release to open it.
Fix panic in Insert/Attach Relationship loop
Full Changelog: https://github.com/stephenafamo/bob/compare/v0.20.4...v0.20.5
Replace huandu/go-clone with qdm12/reprint
huandu/go-clone with qdm12/reprintFull Changelog: https://github.com/stephenafamo/bob/compare/v0.20.3...v0.20.4
huandu/go-clone with qdm12/reprintYour coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
Fix cloning bug by replacing jinzhu/copier with huandu/go-clone
jinzhu/copier with huandu/go-cloneFull Changelog: https://github.com/stephenafamo/bob/compare/v0.20.2...v0.20.3
Account for windows when calculating models module path
Full Changelog: https://github.com/stephenafamo/bob/compare/v0.20.1...v0.20.2
Update the generated code to use github.com/gofrs/uuid/v5
github.com/gofrs/uuid/v5Full Changelog: https://github.com/stephenafamo/bob/compare/v0.20.0...v0.20.1
Add the PreloadWhere preload mod to filter what relation should be preloaded.
Full Changelog: https://github.com/stephenafamo/bob/compare/v0.19.1...v0.20.0
PreloadWhere preload mod to filter what relation should be preloaded.ViewQuery now embeds bob.BaseQuery giving it additional methods like Apply and BuildPlugState, PlugDBInfo and PlugTemplateData.View.Name() return a dialect-specific expressionDebug helpers.
Debug writes query output to stdoutDebugToWriter writes the query output to any io.Writer with a fallback to stdout.DebugToPrinter prints the query with a given bob.DebugPrinter. Also falls back to stdout.OnlyColumns to PreloadOnly and ExceptColumns to PreloadExcept to be more consistent with the newly added PreloadWhere.JoinChain.On now takes Expressions instead of any.JoinChain.Using now takes strings instead of any.gen.TemplateDataILIKE operator from MySQL since it is not supported.Destination() method in driver interface.PackageName() method in driver interface.Preload mods work the same way as other query modsNothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Fix On method for JoinChain in mysql and sqlite
On method for JoinChain in mysql and sqliteFull Changelog: https://github.com/stephenafamo/bob/compare/v0.19.0...v0.19.1
Add no_reverse option for user-configured relationships
LIKE and ILIKE operatorsno_reverse option for user-configured relationshipsFull Changelog: https://github.com/stephenafamo/bob/compare/v0.18.2...v0.19.0
Nothing published for this version
Account for relationships with tables that do not have a primary key in models and factories
Full Changelog: https://github.com/stephenafamo/bob/compare/v0.18.1...v0.18.2
Nothing published for this version
Make self-referencing foreign keys work
Full Changelog: https://github.com/stephenafamo/bob/compare/v0.18.0...v0.18.1
Nothing published for this version
The primary breaking change is that several builder methods now require a bob.Expression instead of any. While this makes building some simple queries…
bob.Expression)The primary breaking change is that several builder methods now require a bob.Expression instead of any.
While this makes building some simple queries more verbose, it makes it harder to make some errors.
As an example, consider the following query
// SELECT * FROM users WHERE id = 1
psql.Select(
sm.From("users"),
sm.Where(psql.X("id").EQ(1)),
)
This feels like the natural way to build this query, however there are some subtle potential issues:
1 should probably be passed as an argument. In a real world application, this could lead to an SQL injection.
// SELECT * FROM users WHERE id = $1
psql.Select(
sm.From("users"),
sm.Where(psql.X("id").EQ(psql.Arg(1))),
)
This query will throw an error if we use a string
// !!!!INVALID QUERY!!!!
// SELECT * FROM users WHERE name = Stephen
psql.Select(
sm.From("users"),
sm.Where(psql.X("name").EQ("Stephen")),
)
The initial reason why these took any was to make Bob easy to adopt. However, after using this in practice, it is likely that the user always wants to do something to make it an expression.
psql.Quotepsql.ArgX builderThe X builder, while convenient doesn't quite fit in anywhere. Most queries will be started with a quote, and can then be fluently chained with other expressions.
In the interest of keeping the surface area of this pacakge small, I've decided to remove it until there is a concrete need.
P builder methodThe P builder method was for adding parentheses to a single expression. However, this overlaps with the Group method with adds parentheses around a list of expressions separated with a comma.
Since using the Group method with a single expression does the same thing as the P method, the P method now feels redundant.
bob.Expression)X builder start functionP builder methodFix bug with args in table updates
Fix a bug when multiple multi-column foreign keys exist
Fix an issue in v0.17.0 which causes errors when generating sqlite models
Fix an issue in v0.17.0 which causes errors when generating sqlite models
Now, Bob will generate join mods for model relationships
Now, Bob will generate join mods for model relationships
models.SelectJoin(ctx).Users.InnerJoin.Posts
ON DUPLICATE KEY UPDATE (#14)Add a code generation driver for Atlas
um.Set update mod works to allow more query buildingNothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.