Skip to content

v2.6.0

Compare
Choose a tag to compare
@aarondl aarondl released this 12 Nov 00:06
· 989 commits to master since this release

Additional Column Upgrades

This change requires a little explanation; a complaint we've heard a number of times from some people is that in bigger use cases of sqlboiler where Go is not the sole consumer of the database, it's possible that a non-breaking change happens to the database (like add table, or add column). In the add column case because of the way bind was being done, it would fail if there was no column to bind to it. Instead now it will be bound to nothing. It was hard to merge this change as I disagree with the premise that something should be silently failing, but it does support the use case well, and I can see no way around it otherwise.

This means you used to get an error when a result set had a column that had no place to bind to, but now you will get a silent failure.

Features

  • Change the way additional columns are bound (#215, thanks @renshaohai83)
  • Struct tag casing is now configurable via command line argument (#194, thanks @jfernstad)
  • Golint now ignores the generated files thanks to a standardized disclaimer (#198, thanks @VeryCB)

Bug Fixes

  • Fix an issue where blacklisted tables would still try to create relationships via foreign keys to that table (#186, thanks @ceshihao)
  • updateAll no longer generates code that's incompatible with some sql databases (#192, thanks @ceshihao)
  • Fix a problem where multiple having query helpers would use commas to join (#219, thanks @knqyf263)
  • A number of README fixes (thanks @gsamokovarov and @jojomi)
  • Fixed a small output error when an incompatible type is detected (thanks fmt.Printf)
  • Upgrade the postgres array code to better handle nil values among other things