Skip to content

Releases: aarondl/sqlboiler

v2.7.0

24 May 00:15
Compare
Choose a tag to compare

Features

  • New flag to tell sqlboiler where to find the config (thanks @l4u)
  • Support postgres citext column types (thanks @boxofrad)

Bug Fixes

  • MySQL virtual columns are now ignored (thanks @Nykakin)
  • Install locales in the test docker files

v2.6.1

05 Mar 16:37
Compare
Choose a tag to compare

Bug Fixes

  • Add time without time zone to time.Time translation list for postgres (thanks @saulortega)
  • Fix breakage in the tests where the satori/uuid package suddenly made a breaking change (error return) (thanks @mpecan)
  • Fix a bug where mysql driver incorrectly translated time to time.Time instead of []byte (thanks @ceshihao)
  • Fix regex for enumerations to include numbers (thanks @knqyf263)
  • Fix a doc syntax error (thanks @VeryCB)

v2.6.0

12 Nov 00:06
Compare
Choose a tag to compare

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

v2.5.1

07 Aug 22:38
Compare
Choose a tag to compare
  • Fix an issue where the mysql driver ignored sign for int64 and always gave you Int64 (thanks @ceshihao)
  • Fix an issue where enumerations did not use deterministic randomization (#179)
  • Remove code that prevented a bug that was caused by an off-by-one. This bug caused not all enumeration values to be able to be used during tests. Fixed that bug.

v2.5.0

28 Jun 04:13
Compare
Choose a tag to compare

Features

  • Constants are now generated for all table names as well as each model's column names (thanks @guytish) docs

Bug Fixes

  • Area is now pluralized correctly by the inflection + strmangle libraries (thanks @jfernstad)

v2.4.1

17 Jun 16:35
Compare
Choose a tag to compare

Minor Bug Fixes

  • Fix an issue where using a select query mod in a one-to-many relationship lookup was ignored (#159)
  • Fix an issue where an enum with only one value could break the tests (#161, thanks @gsamokovarov)
  • Fix an issue where using DeleteAll() after a relationship helper would break (#155)
  • Fix another instance where eager loading would fail with conversion errors (#158)
  • Disabled MSSQL tests in CI (mssql docker image no longer provides a version of mssql that works for sqlboiler)
  • Syntax highlighting in README (thanks @Alexendoo)

v2.4.0

13 May 16:50
Compare
Choose a tag to compare

Minor bug fixes

  • Sort tables by name so generation between runs is stable (thanks @guns)
  • MySQL uint types use uint types in Go (thanks @lyoshenka)

v2.3.0

02 May 01:52
Compare
Choose a tag to compare

New Features

  • MSSQL Support (thanks @nemec784)!
  • Circle CI 2.0 Continuous Integration
  • Allow any io.Writer to be used as boil.DebugWriter (thanks @Michsior14)

Bug Fixes

Misc

  • Added benchmarks against Kallax ORM

v2.2.0

07 Mar 06:08
Compare
Choose a tag to compare

This release entails many bug fixes that have accumulated over the last few months, and a few very minor features

New Features:

  • Add the --wipe flag to have sqlboiler rm -rf your models directory before generation.
  • Add no-edit disclaimer to all generated files

Bug fixes:

  • Fix inflection bug for words like address
  • Fix postgres placeholders for RemoveX
  • Fix tests that weren't being called (causing the following bug)
  • Fix ToManyRemoveOp - was missing an append causing it to silently fail
  • Fix null pointer defer in ToManySetOps
  • Remove debugging output
  • Fix an issue where eagerly loaded models weren't always attached for to-one relationships
  • Fix an issue where created_at was being updated during Update() but it shouldn't have been
  • Use _ to prevent reserved words in function arguments of methods like Find and Exists.
  • Allow insertion of tables with only default values (fixes compat tests and also makes this scenario possible)
  • Fix randomize to not create negative values during compat tests, this allows MySQL unsigned columns to work in the tests

v2.1.7

16 Jan 05:19
Compare
Choose a tag to compare
  • Add cool new logo in the readme
  • Restructure things a bit better to be able to use SQLBoiler as a library (introducing boilercore package)
  • #91 Fix a problem in viper where string slice arguments on the command line weren't working with the existing hack - please update versions of viper you're using with sqlboiler
  • #89 Fix a spacing issue in a template causing compilation errors when certain columns are nullable