Repository navigation
v0.32.0
Added
- Added templates for query generation.
- Added
clause.OrderBy.ClearOrderBy() - Added
expr.ToArgsandexpr.ToArgGroupfunctions to convert slices of a type to args. - Add
querieskey tobobgen-sqlandbobgen-sqliteconfiguration. This is used to specify what folder to search for queries in. - Implement the Postgres query parser for
SELECTstatements. - Implement the SQLite query parser for
SELECTstatements. - Add templates for query generation.
- Add
camelCasetemplate function. - Add types to the
ormpackage to be used in generated queries.orm.ArgWithPosition,orm.ModExpression,orm.ModExecQueryandorm.ModQuery. - Add function
orm.ArgsToExpressionfor use in the generated code. - Add
String()method tobob.QueryType
Fixed
- Update
mvdan.cc/gofumptand give precedence to toolchain when calculating the Go version. (thanks @isgj) - Add custom comparison support when loading relationships.
- Fix issue with scanning Postgres inet type.
- Set
ArgandArgGrouptoNULLif there are no values. - Do not call
BeforeInsertHooksin the insert mod of a view. - Fix issue with retrieving inserted rows with the MySQL driver.
- Add custom comparison for relationship loading. (thanks @kostaspt)
Changed
clause.Withnow takesbob.Expressioninstead ofclause.CTE. This makes it easier to use in generated queries without reconstruction anCTE.clause.OrderBynow takesbob.Expressioninstead ofclause.OrderDef. This makes it easier to use in generated queries without reconstruction anOrderDef.clause.Windowsnow takesbob.Expressioninstead ofclause.NamedWindow. This makes it easier to use in generated queries without reconstruction the window.clause.Forrenemaed toclause.Locksand can now take multiple locks.clause.Fetchnow takesanyinstead of an integer.- Several changes to the
drivers.Querytype as support is added for the new query parser. - Enum types can now be matched by
db_typein bobgen-psql asschema.enum_type. (thanks @abramlab)
Removed
- Removed
clause.OrderBy.SetOrderBy()as it was only being used to clear the set order by clauses.
New Contributors
Full Changelog: v0.31.0...v0.32.0