go-hasql icon indicating copy to clipboard operation
go-hasql copied to clipboard

Go library for accessing multi-host SQL database installations

Results 7 go-hasql issues
Sort by recently updated
recently updated
newest added

Bumped minimal Go version to 1.20 to leverage new language feature: `errors.Join`. It allows to return all connections errors occurred while closing cluster.

*Scenario*: - I call `hasql.NewCluster` with three nodes. One node is unreachable ("context deadline exceeded"). - All further calls to `Cluster.WaitFor*` return an error. - Calls to `Cluster.Alive`, `Cluster.Primary*` and...

Error pops up while running newly added test with `-race` flag ``` $ go test -v -race -run=^TestCluster_BrokenAtStartup$ ./... You use x86_64 version of selected tool. === RUN TestCluster_BrokenAtStartup ===...

This commit adds ability to filter replica nodes by replication lag. User can provide `ReplicationLagChecker` function and `MaxreplicationLag` value as options to cluster constructor to check nodes and remove any...

Functions like `Primary` return node and nothing else. If nil is returned it is very hard to understand why exactly it happened - you have to parse logs (if you...

Hi, does it possible to get automatic failover in case of connection error: 1) have two database hosts master=>slave 2) slave preferred query executing 3) if master error like connection...

Last 7 years I only met projects where ACID transactions were important only for scope of user. So I am using multiple PostgreSQL clusters sharded on client by userID. It...