package
0.0.0-20231231033738-32b79dd17691
Repository: https://github.com/bolajiolajide/pgx-poc-db-store.git
Documentation: pkg.go.dev

# Functions

InTransaction executes the callback using a transaction on the given transactable store.
NewHandleWithDB returns a new transactable database handle using the given database connection.
NewHandleWithTx returns a new transactable database handle using the given transaction.
NewWithHandle returns a new base store using the given database handle.

# Variables

No description provided by the author
ErrNotInTransaction occurs when an operation can only be run in a transaction but the invariant wasn't in place.
ErrNotTransactable occurs when Transact is called on a Store instance whose underlying database handle does not support beginning a transaction.
No description provided by the author

# Structs

No description provided by the author

# Interfaces

ShareableStore is implemented by stores to explicitly allow distinct store instances to reference the store's underlying handle.
Transactable marks an interface that returns a type that returns a transactable store that is polymorphic on a generic type.
TransactableHandle is a wrapper around a database connection that provides nested transactions through registration and finalization of savepoints.