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

Method create_pool

asyncpg/_testbase/__init__.py:374–380  ·  view source on GitHub ↗
(self, pool_class=pg_pool.Pool,
                    connection_class=pg_connection.Connection, **kwargs)

Source from the content-addressed store, hash-verified

372 self._pools = []
373
374 def create_pool(self, pool_class=pg_pool.Pool,
375 connection_class=pg_connection.Connection, **kwargs):
376 conn_spec = self.get_connection_spec(kwargs)
377 pool = create_pool(loop=self.loop, pool_class=pool_class,
378 connection_class=connection_class, **conn_spec)
379 self._pools.append(pool)
380 return pool
381
382
383class ProxiedClusterTestCase(ClusterTestCase):

Callers

nothing calls this directly

Calls 2

get_connection_specMethod · 0.95
create_poolFunction · 0.70

Tested by

no test coverage detected