SQLBoiler v4.8.4 Release Notes

Release Date: 2022-01-27 // about 2 years ago
  • ➕ Added

    • ➕ Add new --always-wrap-errors flag that does not unwrap sql.ErrNoRows so it can retain the stack trace. This supports the best practice of using errors.Is() anyway and will eventually become the default behavior in a breaking v5 (thanks @jhnj)
    • ➕ Add support for * as a wildcard for white/blacklisting columns. See readme for details (thanks @Yoshiji)
    • ➕ Add missing function func (modelQuery) UpdateAllGP(...) (thanks @MeanSquaredError)
    • ➕ Add support for generated columns
    • ➕ Add support for database views
    • ➕ Add a _model suffix to the generated file for tables names that end with _test or _goos or _goarch since Go treats such files specially.
    • ➕ Add C in front of model column attributes that begin with a number since a struct field cannot begin with a number in Go
    • Add sqlite3 driver to the main repo using the CGo-free port

    🔄 Changes

    • Modify the --add-enum-types flag to also use the generated types in the model fields (thanks @optiman)
    • 0️⃣ Mark nullable columns as having a default in Postgres driver
    • ⬆️ Bump MySQL version used for testing to 8.0

    🛠 Fixed

    • 🛠 Fix panic when a column referrring a foreign key is ignored (thanks @zapo)
    • 🛠 Fix bug with using the zero value of the decimal type for a nullable column (thanks @hongshaoyang)