package
0.0.0-20240826141418-75fe9e6d1c2f
Repository: https://github.com/evanj/hacks.git
Documentation: pkg.go.dev

# Functions

Run executes body in a transaction that will always commit or roll back, and with retries in case of deadlocks or serialization errors.

# Constants

PGCodeDeadlockDetected is the Postgres error code for a deadlock.
PGCodeSerializationFailure is the Postgres error code for a serialization failure.

# Interfaces

TransactionalDB is a database that can run transactions.