Skip to content

Releases: volatiletech/sqlboiler

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

v2.1.6

16 Jan 05:16
Compare
Choose a tag to compare
  • #87 Fix an issue where G/P/GP variants weren't generated for SetOps
  • #88 Document the fact that the boil.Begin() feature exists better

v2.1.5

07 Jan 19:38
Compare
Choose a tag to compare

Bug fixes

  • #77 Unique definitions were not correct in that if a unique key was placed over two columns, each column became unique which shouldn't be the case. This resulted in relationships generating one-to-one where they should have been to-many.
  • #85 Fixed an oversight in Postgres where information_schema doesn't provide enough information to uniquely identify a duplicated constraint name causing multiple relationships to be generated.
  • #84 Fixed a postgres-ism where no data is returned from a query when there was no data updated in an upsert which would return a spurious error.

v2.1.4

02 Jan 09:30
Compare
Choose a tag to compare

Add --tinyint-as-bool flag for MySQL. This flag tells the generator that you wish tinyint(1) columns to be mapped to Go's bool type opposed to the default type of int8.

v2.1.3

02 Jan 09:28
Compare
Choose a tag to compare

Fix missing StringArray import for generated structs that point to database arrays.

v2.1.1

16 Nov 06:09
Compare
Choose a tag to compare
  • Fix an issue where combining query mods with relationships would break
  • Fix an issue where during eager loading if you had: Load("One.Two") and One failed to return anything because there were no records, there would be a panic

v2.1.0

12 Nov 08:14
Compare
Choose a tag to compare

Features

  • Add support for Enums in MySQL and Postgres
  • Add support for single bytes ("char" type) for Postgres
  • Upgrade to github.com/nullbio/null.v6

Bug Fixes

  • Add the entire list of golint checked acronyms to sqlboiler's TitleCase (ID, UUID, etc.)
  • Fix an issue where --basedir was being ignored in environment & command line (thanks pritambaral)
  • Fix issue where eager loading N separate entities on a model would overwrite the previous N-1 loads

Upgrade Instructions

Please ensure you upgrade the null package to the latest version or you may run into trouble with this release.

go get -u gopkg.in/nullbio/null.v6

v2.0.5

16 Oct 09:39
Compare
Choose a tag to compare
  • Add "ip" to uppercase words for struct members
  • Add new line to warnings for incompatible data-type to improve readability