MCPcopy
hub / github.com/psycopg/psycopg / has_pipeline

Method has_pipeline

psycopg/psycopg/_capabilities.py:47–52  ·  view source on GitHub ↗

Check if the :ref:`pipeline mode <pipeline-mode>` is supported. The feature requires libpq 14.0 or greater.

(self, check: bool = False)

Source from the content-addressed store, hash-verified

45 return self._has_feature("Connection.info.hostaddr", 120000, check=check)
46
47 def has_pipeline(self, check: bool = False) -> bool:
48 """Check if the :ref:`pipeline mode <pipeline-mode>` is supported.
49
50 The feature requires libpq 14.0 or greater.
51 """
52 return self._has_feature("Connection.pipeline()", 140000, check=check)
53
54 def has_set_trace_flags(self, check: bool = False) -> bool:
55 """Check if the `pq.PGconn.set_trace_flags()` method is implemented.

Callers 6

test_cachingFunction · 0.95
pipeline_uniqviolFunction · 0.80
test_build_or_import_msgFunction · 0.80
test_impl_build_errorFunction · 0.80
is_supportedMethod · 0.80
_enter_genMethod · 0.80

Calls 1

_has_featureMethod · 0.95

Tested by 4

test_cachingFunction · 0.76
pipeline_uniqviolFunction · 0.64
test_build_or_import_msgFunction · 0.64
test_impl_build_errorFunction · 0.64