IsCommitted returns true if the transaction has been committed.
()
| 244 | |
| 245 | // IsCommitted returns true if the transaction has been committed. |
| 246 | func (tx *Transaction) IsCommitted() bool { |
| 247 | tx.mutex.RLock() |
| 248 | defer tx.mutex.RUnlock() |
| 249 | return tx.committed |
| 250 | } |
| 251 | |
| 252 | // IsRolledBack returns true if the transaction has been rolled back. |
| 253 | func (tx *Transaction) IsRolledBack() bool { |
no outgoing calls