open-vault/vendor/github.com/cockroachdb/cockroach-go/crdb
2018-10-03 09:55:26 -07:00
..
error.go
README.md Update Deps (#5454) 2018-10-03 09:55:26 -07:00
tx.go Update Deps (#5454) 2018-10-03 09:55:26 -07:00

CRDB

crdb is a wrapper around the logic for issuing SQL transactions which performs retries (as required by CockroachDB).

Note that unfortunately there is no generic way of extracting a pg error code; the library has to recognize driver-dependent error types. We currently support github.com/lib/pq and github.com/jackc/pgx.