Tags: yandex/go-hasql
Tags
hasql/v2 This is a major update of hasql. 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