A Transaction is something that can be committed or rolledback.
| 29 | |
| 30 | // A Transaction is something that can be committed or rolledback. |
| 31 | type Transaction interface { |
| 32 | // Commit the transaction |
| 33 | Commit() error |
| 34 | // Rollback the transaction. |
| 35 | Rollback() error |
| 36 | } |
| 37 | |
| 38 | // EndTransaction ends a transaction. |
| 39 | // If the transaction succeeded then it is committed, otherwise it is rolledback. |
no outgoing calls
no test coverage detected