(conn)
| 52 | |
| 53 | |
| 54 | def in_transaction(conn): |
| 55 | if conn.pgconn.transaction_status == pq.TransactionStatus.IDLE: |
| 56 | return False |
| 57 | elif conn.pgconn.transaction_status == pq.TransactionStatus.INTRANS: |
| 58 | return True |
| 59 | else: |
| 60 | assert False, conn.pgconn.transaction_status |
| 61 | |
| 62 | |
| 63 | def get_exc_info(exc): |
no outgoing calls
no test coverage detected