MCPcopy
hub / github.com/psycopg/psycopg / from_pq

Method from_pq

psycopg/psycopg/_enums.py:47–48  ·  view source on GitHub ↗
(cls, fmt: pq.Format)

Source from the content-addressed store, hash-verified

45
46 @classmethod
47 def from_pq(cls, fmt: pq.Format) -> "PyFormat":
48 return _pg2py[fmt]
49
50 @classmethod
51 def as_pq(cls, fmt: "PyFormat") -> pq.Format:

Callers 13

test_copy_to_leaksFunction · 0.80
test_copy_from_leaksFunction · 0.80
test_copy_to_leaksFunction · 0.80
test_copy_from_leaksFunction · 0.80
test_list_dumperFunction · 0.80
test_copy_from_leaksFunction · 0.80
test_copy_from_leaksFunction · 0.80
register_dumperMethod · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
upgradeMethod · 0.80

Calls

no outgoing calls

Tested by 7

test_copy_to_leaksFunction · 0.64
test_copy_from_leaksFunction · 0.64
test_copy_to_leaksFunction · 0.64
test_copy_from_leaksFunction · 0.64
test_list_dumperFunction · 0.64
test_copy_from_leaksFunction · 0.64
test_copy_from_leaksFunction · 0.64