- Go 1.17+ is now required.
v1.5.1 (2021-08-27, https://github.com/go-reform/reform/milestones/v1.5.1)
reform-db init
now correctly handles tables with composite primary keys (#274).
v1.5.0 (2020-12-08, https://github.com/go-reform/reform/milestones/v1.5.0)
- Generated code now passes Go 1.15's
go vet
. See (#245) and (#269). - Removed hard-coded dependency on sqlite3 package.
- Updated dependencies and testing infrastructure.
v1.4.0 (2020-07-29, https://github.com/go-reform/reform/milestones/v1.4.0)
- Go 1.13+ is now required.
- Converted to Go module. Non modules-aware tools like
dep
are still supported until reform v2 (dependencies with Semantic Import Versioning paths are not used in v1). - Added
context
support. - Added
Querier.Count
. Thanks to Simon Kamenetskiy. - Added support for github.com/jackc/pgx v3 driver.
- CI now uses GitHub Actions.
v1.3.4 (2020-06-25, https://github.com/go-reform/reform/milestones/v1.3.4)
- Make reform generator work with Go 1.15.
- Replace syreclabs.com/go/faker with github.com/brianvoe/gofakeit.
v1.3.3 (2018-12-11, https://github.com/go-reform/reform/milestones/v1.3.3)
- Fix tests for Go 1.12.
v1.3.2 (2018-07-23, https://github.com/go-reform/reform/milestones/v1.3.2)
- Go 1.8+ is now required due to changes in github.com/lib/pq driver.
- Fixes in tests for MySQL 8, Go 1.10+ and latest versions of drivers.
v1.3.1 (2017-12-07, https://github.com/go-reform/reform/milestones/v1.3.1)
- No user-visible changes.
- Major changes in CI and development environment.
v1.3.0 (2017-12-01, https://github.com/go-reform/reform/milestones/v1.3.0)
- Go 1.7+ is now required.
- Added
reform-db
command.init
subcommand may be used to generate Go model files for existing database schema.query
andexec
subcommands may be used for accessing a database.
- Fields with
reform
tag with value"-"
are ignored now (just like with value""
and without tag at all). - Added
ErrTxDone
. - Added
DB.DBInterface
. - Added
Querier.UpdateView
. reform
command with-gofmt=false
flag still formats generated sources with go/format package, without invokinggofmt
. Thanks to João Pereira.- Added support for
sqlserver
variant of github.com/denisenkom/go-mssqldb driver. - Added support for Microsoft SQL Server for Linux.
- We now have a logo! Huge thanks to Natalya Glebova for making it.
v1.2.1 (2016-09-14, https://github.com/go-reform/reform/milestones/v1.2.1)
reform
command now correctly handles non-exported types.Querier.Insert
now correctly INSERTs records with set non-integer primary keys, even if dialect uses LastInsertId (MySQL, SQLite3).
v1.2.0 (2016-08-10, https://github.com/go-reform/reform/milestones/v1.2.0)
- Added support for Microsoft SQL Server. Huge thanks to Aleksey Martynov.
- Added
Querier.InsertColumns
. Querier.Insert
now correctly handles records with only primary key column.
v1.1.2 (2016-07-20, https://github.com/go-reform/reform/milestones/v1.1.2)
reform
command now correctly ignores type information when it's not used. This allows one to have fields of any custom types. The only exception is primary key fields, which are restricted to basic types (numbers and strings).- Package
gopkg.in/reform.v1/parse
is explicitly documented as internal. (It's wasn't really possible to use it.)
v1.1.1 (2016-07-05, https://github.com/go-reform/reform/milestones/v1.1.1)
Querier.UpdateColumns
no longer allows to update primary key column. This behavior was allowed, but did not make any sense.reform
command now correctly handles pointers to custom types and slices.
v1.1.0 (2016-07-01, https://github.com/go-reform/reform/milestones/v1.1.0)
- Added
Querier.InsertMulti
. - Added
DBInterface
,TXInterface
,NewDBFromInterface
,NewTXFromInterface
.
- Moved to https://github.com/go-reform/reform repository.
- Changed canonical import path.
- Added versioning policy.