package
0.0.0-20160920194302-ad86efcaa21b
Repository: https://github.com/a10y/cockroach.git
Documentation: pkg.go.dev

# Functions

DefaultDBContext returns (a copy of) the default options for NewDBWithContext.
NewDB returns a new DB.
NewDBWithContext returns a new DB with the given parameters.
NewSender returns an implementation of Sender which exposes the Key-Value database provided by a Cockroach cluster by connecting via RPC to a Cockroach node.
NewTxn returns a new txn.
SendWrapped is identical to SendWrappedWith with a zero header.
SendWrappedWith is a convenience function which wraps the request in a batch and sends it via the provided Sender and headers.
Wrap returns a Sender which applies the given function before delegating to the supplied Sender.

# Structs

AutoCommitError wraps a non-retryable error coming from auto-commit.
Batch provides for the parallel execution of a number of database operations.
DB is a database handle to a single cockroach cluster.
DBContext contains configuration parameters for DB.
KeyValue represents a single key/value pair and corresponding timestamp.
Result holds the result for a single DB or Txn operation (e.g.
Txn is an in-progress distributed database transaction.
TxnExecOptions controls how Exec() runs a transaction and the corresponding closure.

# Interfaces

Sender is the interface used to call into a Cockroach instance.

# Type aliases

SenderFunc is an adapter to allow the use of ordinary functions as Senders.