Return True if Connection is currently inside a transaction. :return bool: True if inside transaction, False otherwise. .. versionadded:: 0.16.0
(self)
| 303 | return transaction.Transaction(self, isolation, readonly, deferrable) |
| 304 | |
| 305 | def is_in_transaction(self): |
| 306 | """Return True if Connection is currently inside a transaction. |
| 307 | |
| 308 | :return bool: True if inside transaction, False otherwise. |
| 309 | |
| 310 | .. versionadded:: 0.16.0 |
| 311 | """ |
| 312 | return self._protocol.is_in_transaction() |
| 313 | |
| 314 | async def execute( |
| 315 | self, |
no outgoing calls