Skip to content

Releases: yandex/go-hasql

v2.0.0

29 Nov 09:28
45d4bcb
Compare
Choose a tag to compare

This is a major update of hasql with breaking changes to prior v1 version.

Notable changes

  • Minimal Go version bumped to 1.22 due to usage of generics, errors.Join and slices package
  • *Node is now a generic *Node[T] allowing to use any sql.DB compatible driver directly
  • NodeDiscoverer interface allows to provide dynamic nodes list (e.g. service discovery) oppose to static []*Node slice
  • NodeChecker is now able to provide any additional information about cluster node (such as latency, replication lag etc.) and this information can be used to pick appropriate node

Minor changes

  • Cluster now uses internal context.WithCancel for more robust Close method execution
  • Code base simplification

v1.1.1

01 Oct 09:24
f03fa5f
Compare
Choose a tag to compare

Added errors collector by @vano468 and @kwargs.

v1.1.0

17 Aug 10:20
ca3cdfc
Compare
Choose a tag to compare

What's Changed

v1.0.0

21 Nov 15:10
Compare
Choose a tag to compare

No breaking changes since initial release.

Added PickNodeClosest for choosing nodes with lowest latency.

v0.9.1

16 Sep 13:57
Compare
Choose a tag to compare

Added forgotten API changes to sqlx adapter.

v0.9.0

14 Sep 14:15
Compare
Choose a tag to compare

Initial release of hasql library.

Code is production-ready and was used inside Yandex for a couple of years. Marking as v0.9 only because we want to leave room for possible API adjustments in case of community feedback.