MCPcopy
hub / github.com/psycopg/psycopg / pipeline

Function pipeline

tests/test_generators.py:71–78  ·  view source on GitHub ↗
(pgconn)

Source from the content-addressed store, hash-verified

69
70@pytest.fixture
71def pipeline(pgconn):
72 nb, pgconn.nonblocking = pgconn.nonblocking, True
73 assert pgconn.nonblocking
74 pgconn.enter_pipeline_mode()
75 yield
76 if pgconn.pipeline_status:
77 pgconn.exit_pipeline_mode()
78 pgconn.nonblocking = nb
79
80
81def _run_pipeline_communicate(pgconn, generators, commands, expected_statuses):

Callers

nothing calls this directly

Calls 2

enter_pipeline_modeMethod · 0.45
exit_pipeline_modeMethod · 0.45

Tested by

no test coverage detected