This project contains helpers for CockroachDB users writing in Go:
- crdband 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.mdfor more details.
- testserverprovides functions for starting and connecting to a locally running instance of CockroachDB. It is intended for use in test code.
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"
)