Skip to content

cockroachdb/cockroach-go

Folders and files

NameName
Last commit message
Last commit date
Feb 5, 2025
Feb 5, 2025
Mar 6, 2024
Dec 30, 2022
Mar 23, 2016
Sep 13, 2021
Feb 5, 2025
Feb 5, 2025

Repository files navigation

CockroachDB Go Helpers Go Reference

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"
)