IsRolledBack returns true if the transaction has been rolled back.
()
| 251 | |
| 252 | // IsRolledBack returns true if the transaction has been rolled back. |
| 253 | func (tx *Transaction) IsRolledBack() bool { |
| 254 | tx.mutex.RLock() |
| 255 | defer tx.mutex.RUnlock() |
| 256 | return tx.rolledBack |
| 257 | } |
| 258 | |
| 259 | // IsActive returns true if the transaction is still active (not committed or rolled back). |
| 260 | func (tx *Transaction) IsActive() bool { |
no outgoing calls