Return True if Connection is currently inside a transaction. :return bool: True if inside transaction, False otherwise. .. versionadded:: 0.16.0
(self)
| 309 | return transaction.Transaction(self, isolation, readonly, deferrable) |
| 310 | |
| 311 | def is_in_transaction(self): |
| 312 | """Return True if Connection is currently inside a transaction. |
| 313 | |
| 314 | :return bool: True if inside transaction, False otherwise. |
| 315 | |
| 316 | .. versionadded:: 0.16.0 |
| 317 | """ |
| 318 | return self._protocol.is_in_transaction() |
| 319 | |
| 320 | async def execute( |
| 321 | self, |
no outgoing calls