Skip to content

Releases: src-d/go-kallax

v1.2.17

18 Jul 14:56
Compare
Choose a tag to compare

Bugs fixed

  • #206 fix order of generated tables in schema generation

v1.2.16

18 Jul 13:58
Compare
Choose a tag to compare

Performance improvements

  • #207 avoid extra queries when there is no limit on the query and the size of the returned result set is less than the batch size in batched queries.

v1.2.15

18 Jul 08:58
Compare
Choose a tag to compare

Changes

  • make all non-pointer fields not null by default in schema #202

v1.2.14

12 Jul 15:52
Compare
Choose a tag to compare

Bugs fixed

  • #194 Kallax migrate did not work properly on windows

Performance improvements

  • #196 Avoid extra query if the number of rows returned is less than limit or batch size

v1.2.13

28 Jun 09:09
Compare
Choose a tag to compare

Enhancements added

  • Ability to specify the primary key directly in the embedded kallax.Model by column name.

v1.2.12

19 Jun 16:31
Compare
Choose a tag to compare

Changes introduced

  • Removal of empty lines at the end and start of blocks in the generated kallax.go file.

v1.2.11

19 Jun 08:23
Compare
Choose a tag to compare

Bug fixes

  • [Windows-only] correct handling of the --dir argument in the kallax migrate command.

v1.2.10

13 Jun 14:52
Compare
Choose a tag to compare

Bug fixes

  • Added implicit foreign keys for the models that should have an inverse relationship but haven't. Please regenerate your kallax.go files.

v1.2.9

13 Jun 13:10
Compare
Choose a tag to compare

Bug fixes

  • Non-pointer slices of relationships are working as expected now. Please, regenerate your kallax.go after this.

v1.2.8

13 Jun 09:51
Compare
Choose a tag to compare

Bug fixes

  • Allow circular dependencies in schema generation for self references and inverse relationships.
  • Virtual columns were not being correctly taken into account for inserts and updates, so you could not have a relationship without an explicit inverse in the child.
    For example, this code works now:
type Parent struct {
  kallax.Model
  ID int64
  Child *Child
}

type Child struct {
  kallax.Model
  ID int64
}

Before it was required that Child had a:

Parent *Parent `fk:",inverse"`