MCPcopy Index your code
hub / github.com/MagicStack/asyncpg / _check_open

Method _check_open

asyncpg/prepared_stmt.py:274–278  ·  view source on GitHub ↗
(self, meth_name)

Source from the content-addressed store, hash-verified

272 return data
273
274 def _check_open(self, meth_name):
275 if self._state.closed:
276 raise exceptions.InterfaceError(
277 'cannot call PreparedStmt.{}(): '
278 'the prepared statement is closed'.format(meth_name))
279
280 def _check_conn_validity(self, meth_name):
281 self._check_open(meth_name)

Callers 1

_check_conn_validityMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected