https://github.com/cockroachdb/cockroach-go
Packages for go clients.
https://github.com/cockroachdb/cockroach-go
Last synced: about 1 year ago
JSON representation
Packages for go clients.
- Host: GitHub
- URL: https://github.com/cockroachdb/cockroach-go
- Owner: cockroachdb
- License: apache-2.0
- Created: 2016-03-22T19:15:38.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2025-06-13T03:18:57.000Z (about 1 year ago)
- Last Synced: 2025-06-13T14:02:30.550Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 321 KB
- Stars: 162
- Watchers: 48
- Forks: 73
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CockroachDB Go Helpers [](https://pkg.go.dev/github.com/cockroachdb/cockroach-go/v2/crdb)
This project contains helpers for CockroachDB users writing in Go:
- `crdb` and its subpackages provide wrapper functions for retrying transactions that fail
due to serialization errors. It is intended for use within any Go application. See
`crdb/README.md` for more details.
- `testserver` provides functions for starting and connecting to a locally running instance of
CockroachDB. It is intended for use in test code.
## Prerequisites
The current release (v2) of this library requires Go modules.
You can import it in your code using:
```
import (
"github.com/cockroachdb/cockroach-go/v2/crdb"
"github.com/cockroachdb/cockroach-go/v2/testserver"
)
```