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

Function pipeline

tests/fix_db.py:210–218  ·  view source on GitHub ↗
(request, conn)

Source from the content-addressed store, hash-verified

208
209@pytest.fixture(params=[True, False], ids=["pipeline=on", "pipeline=off"])
210def pipeline(request, conn):
211 if request.param:
212 if not psycopg.Pipeline.is_supported():
213 pytest.skip("pipeline mode not supported")
214 with conn.pipeline() as p:
215 yield p
216 return
217 else:
218 yield None
219
220
221@pytest.fixture

Callers

nothing calls this directly

Calls 2

is_supportedMethod · 0.80
pipelineMethod · 0.45

Tested by

no test coverage detected