github volatiletech/sqlboiler v2.0.1

latest releases: v4.16.2, v4.16.1, v4.16.0...
7 years ago

Large number of bug fixes and QOL improvements.

  • Added support for []byte (binary/bytea) as a primary key
  • Added a MySQL and Postgres test schema for more consistent testing
  • Added both schemas to CI tests
  • Fixed an issue where delete all would fail
  • Fixed tests for delete all query generation that allowed the previous bug
  • Fixed an issue where 1-to-1 setop remove was being generated under wrong conditions
  • Fixed an issue where null foreign keys were not being set as valid in relationships
  • Fixed an issue where you could not insert/update/unpsert a table with only a primary-key
  • Fixed caching for upsert (previously too aggressive, and missing some cache keys)
  • Fixed caching for MySQL queries without return columns
  • Fixed an issue where template generation would produce constant diffs (map ordering)
  • Fixed several template generation failures
  • Fixed several struct randomization issues for testing
  • Fixed several lint errors in the generated code
  • Force MySQL to use time.Time parsing (see README for requirements)
  • Recognize "_uuid", "_oid" and "_guid" (in addition to "_id") as suffixes to be deleted when naming relationships
  • Refactor the one-to-one relationship, duplicate rather than using clever sub-template abstraction
  • Removed reflect helpers (GetStructPointers/Values) for optimized versions (PtrsFromMapping)
  • Removed checks for rows affected since they're unpredictable
  • Removed unused variables from text_helpers
  • Removed unused variables from templates

Don't miss a new sqlboiler release

NewReleases is sending notifications on new releases.