MCPcopy Index your code
hub / github.com/piccolo-orm/piccolo / _create_pool

Method _create_pool

tests/engine/test_pool.py:16–23  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

14@engines_only("postgres", "cockroach")
15class TestPool(DBTestCase):
16 async def _create_pool(self) -> None:
17 engine = cast(PostgresEngine, Manager._meta.db)
18
19 await engine.start_connection_pool()
20 assert engine.pool is not None
21
22 await engine.close_connection_pool()
23 assert engine.pool is None
24
25 async def _make_query(self):
26 await Manager._meta.db.start_connection_pool()

Callers 1

test_creationMethod · 0.95

Calls 2

start_connection_poolMethod · 0.45
close_connection_poolMethod · 0.45

Tested by

no test coverage detected