Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Transaction ¶
type Transaction interface {
// Commit will persist the changes in the transaction.
Commit() error
// Rollback undoes the changes in a transaction
Rollback() error
}
Transaction is an abstraction of transactions typically found in database systems. One of Commit() or Rollback() must be called on each transaction.
type TransactionFactory ¶
type TransactionFactory func() (Transaction, error)
Click to show internal directories.
Click to hide internal directories.