Repository navigation
Releases
Releases · cockroachlabs/cockroachdb-go-library
v0.2.0
Validate follower-read staleness and fail fast; custom staleness through every adapter.
- New
FollowerReadClause(d) (string, error)gate: 0 →follower_read_timestamp(), >0 →'-Xs', <0 → error. - BREAKING:
FollowerReadWithStaleness(d)now returns(string, error)and rejects d<=0 (previously emitted invalid SQL). - New custom-staleness adapter methods (pgx/sqlx
QueryFollowerReadAsetc.; gorm scope errors on invalid staleness).
See CHANGELOG.md.
v0.1.0
First tagged release of the CockroachDB Go library (cockroachlabs org).
- Retries, multi-region, follower reads, circuit breaker, CDC, metrics, AI/vector
- Cockroach Continuum: Cloud client, virtual clusters, MCP client, Aegis-over-MCP, metric-export, health
Install:
go get github.com/cockroachlabs/cockroachdb-go-library@v0.1.0
Docs: https://pkg.go.dev/github.com/cockroachlabs/cockroachdb-go-library