Skip to content

v0.38.0

Latest
Compare
Choose a tag to compare
@stephenafamo stephenafamo released this 04 Jun 11:22
· 18 commits to main since this release

Highlights

It is now possible to restore the null type system from < v0.37.0 by adding fallback_null: github.com/aarondl/opt/null to your bobgen.yaml configuration file.

Added

  • Added the fallback_null top level configuraiton option. Which can be either database/sql or github.com/aarondl/opt/null.
    This is used to determine how to create null values in the generated code. If set to database/sql, it will use sql.Null[T] for nullable types, and if set to github.com/aarondl/opt/null, it will use opt.null.Val[T].
    The default value is database/sql.

Fixed

  • Correctly build models with nested relationships in the factory.
  • Fix a performance issue with code generation in bobgen-psql.
  • Use the correct alias when generating table columns.
  • Fix issue with generating factory code for tables with schema names.

Full Changelog: v0.37.0...v0.38.0