open-vault/vendor/github.com/cockroachdb/cockroach-go/crdb/README.md

10 lines
338 B
Markdown
Raw Normal View History

2018-10-03 16:55:26 +00: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`.