Skip to content

Releases: networkteam/construct

v2.2.0

18 Nov 12:28

Choose a tag to compare

Implement new generated functions for changesets:

  • DiffMyTargetType for building a changeset from changed fields of models (great for selective updates)
  • MyChangeSet.Empty for checking if a changeset is empty

v2.1.0-alpha

19 Sep 13:48

Choose a tag to compare

v2.1.0-alpha Pre-release
Pre-release

Implemented new IterateRows range function (a.k.a. iterator) for Go 1.23 for constructsql and constructpgx

v2.0.1: Merge pull request #5 from networkteam/package_check

06 Oct 13:57
98847d7

Choose a tag to compare

Fixes an issue when generating mappings in the same package as the annotated structs (models).

v2.0.0

06 Oct 13:49

Choose a tag to compare

v2.0.0-beta.4

11 Apr 13:00

Choose a tag to compare

v2.0.0-beta.4 Pre-release
Pre-release
  • Breaking: Generated field names in the schema struct are now using the same case as in the original struct type to prevent collisions with Go keywords (e.g. type)

v2.0.0-beta.3

11 Apr 12:47

Choose a tag to compare

v2.0.0-beta.3 Pre-release
Pre-release
  • Implemented new table_name tag to generate an additional Identer for the table name
  • Breaking: Moved schema vars from individual global vars to an anonymous struct with fields

v2.0.0-beta.2

11 Apr 10:22

Choose a tag to compare

v2.0.0-beta.2 Pre-release
Pre-release
Remove reference to Squirrel

v2.0.0-beta.1

06 Apr 11:23

Choose a tag to compare

v2.0.0-beta.1 Pre-release
Pre-release

On our way to version 2!

  • Removed JSON features in this package
  • Integrated github.com/networkteam/qrb for JSON building, generated field names (as vars instead of const)
  • Use qrb in the examples
  • Removed some dependencies

Auto discover structs in package, require Go 1.18

06 Oct 15:43

Choose a tag to compare

  • Adds support for just specifying a fully-qualified package name instead of listing all struct types in multiple go:generate commands. Struct types with read or write col definitions will be discovered automatically.
  • Go 1.18 is required starting with this version.

Go 1.18 and arm64 compatibility

22 Dec 10:03
5257dcf

Choose a tag to compare

  • Updated versions and added CI test for Go 1.18 compatibility
  • Use forked go-immutable package for arm64 compatibility (go-bits does not compile on non-amd64)