MCPcopy
hub / github.com/psycopg/psycopg / notifies

Function notifies

psycopg/psycopg/generators.py:294–304  ·  view source on GitHub ↗
(pgconn: PGconn)

Source from the content-addressed store, hash-verified

292
293
294def notifies(pgconn: PGconn) -> PQGen[list[pq.PGnotify]]:
295 yield WAIT_R
296 pgconn.consume_input()
297
298 ns = []
299 while n := pgconn.notifies():
300 ns.append(n)
301 if pgconn.notify_handler:
302 pgconn.notify_handler(n)
303
304 return ns
305
306
307def copy_from(pgconn: PGconn) -> PQGen[memoryview | PGresult]:

Callers 2

notifiesMethod · 0.85
notifiesMethod · 0.85

Calls 2

consume_inputMethod · 0.45
notifiesMethod · 0.45

Tested by

no test coverage detected