crdbpgx is a wrapper around the logic for issuing SQL transactions which
performs retries (as required by CockroachDB) when using
github.com/jackc/pgx in standalone-library
mode. pgx versions below v4 are not supported.
If you're using pgx just as a driver for the standard database/sql package,
use the parent crdb package instead.
ExecuteTx runs fn inside a transaction and retries it as needed. On
non-retryable failures, the transaction is aborted and rolled back; on
success, the transaction is committed.