MCPcopy
hub / github.com/psycopg/psycopg / check

Function check

tests/pool/test_pool_common_async.py:627–629  ·  view source on GitHub ↗
(conn)

Source from the content-addressed store, hash-verified

625 checked = False
626
627 async def check(conn):
628 nonlocal checked
629 checked = True
630
631 async with pool_cls(dsn, check=check) as p:
632 async with p.connection(timeout=1.0) as conn:

Callers

nothing calls this directly

Calls 1

check_connectionMethod · 0.45

Tested by

no test coverage detected