cockroach-go

module
v2.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2021 License: Apache-2.0

README

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

Directories

Path Synopsis
Package crdb provides helpers for using CockroachDB in client applications.
Package crdb provides helpers for using CockroachDB in client applications.
Package testserver provides helpers to run a cockroach binary within tests.
Package testserver provides helpers to run a cockroach binary within tests.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL