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

Method _check_init

asyncpg/pool.py:1009–1018  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1007 self._generation += 1
1008
1009 def _check_init(self):
1010 if not self._initialized:
1011 if self._initializing:
1012 raise exceptions.InterfaceError(
1013 'pool is being initialized, but not yet ready: '
1014 'likely there is a race between creating a pool and '
1015 'using it')
1016 raise exceptions.InterfaceError('pool is not initialized')
1017 if self._closed:
1018 raise exceptions.InterfaceError('pool is closed')
1019
1020 def _drop_statement_cache(self):
1021 # Drop statement cache for all connections in the pool.

Callers 4

_acquireMethod · 0.95
releaseMethod · 0.95
closeMethod · 0.95
terminateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected