MCPcopy
hub / github.com/MagicStack/asyncpg / _check_open

Method _check_open

asyncpg/connection.py:1603–1605  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1601 self._cancellations.clear()
1602
1603 def _check_open(self):
1604 if self.is_closed():
1605 raise exceptions.InterfaceError('connection is closed')
1606
1607 def _get_unique_id(self, prefix):
1608 global _uid

Callers 13

add_listenerMethod · 0.95
transactionMethod · 0.95
executeMethod · 0.95
executemanyMethod · 0.95
cursorMethod · 0.95
_prepareMethod · 0.95
fetchMethod · 0.95
fetchvalMethod · 0.95
fetchrowMethod · 0.95
fetchmanyMethod · 0.95
set_type_codecMethod · 0.95

Calls 1

is_closedMethod · 0.95

Tested by

no test coverage detected