MCPcopy
hub / github.com/psycopg/psycopg / is_supported

Method is_supported

psycopg/psycopg/_pipeline_base.py:61–63  ·  view source on GitHub ↗

Return `!True` if the psycopg libpq wrapper supports pipeline mode.

(cls)

Source from the content-addressed store, hash-verified

59
60 @classmethod
61 def is_supported(cls) -> bool:
62 """Return `!True` if the psycopg libpq wrapper supports pipeline mode."""
63 return capabilities.has_pipeline()
64
65 def _enter_gen(self) -> PQGen[None]:
66 capabilities.has_pipeline(check=True)

Callers 7

pytest_runtest_setupFunction · 0.80
pipelineFunction · 0.80
apipelineFunction · 0.80
test_pipeline_supportedFunction · 0.80
executemanyMethod · 0.80
executemanyMethod · 0.80

Calls 1

has_pipelineMethod · 0.80

Tested by 2

test_pipeline_supportedFunction · 0.64