MCPcopy
hub / github.com/psycopg/psycopg / update_crdb_python_oids

Function update_crdb_python_oids

tools/update_oids.py:81–89  ·  view source on GitHub ↗
(conn: Connection)

Source from the content-addressed store, hash-verified

79
80
81def update_crdb_python_oids(conn: Connection) -> None:
82 fn = ROOT / "psycopg/psycopg/crdb/_types.py"
83
84 lines = []
85 lines.extend(get_version_comment(conn))
86 lines.extend(get_py_types(conn))
87
88 update_file(fn, lines)
89 sp.check_call(["black", "-q", fn])
90
91
92def get_version_comment(conn: Connection) -> list[str]:

Callers 1

mainFunction · 0.85

Calls 3

get_version_commentFunction · 0.85
get_py_typesFunction · 0.85
update_fileFunction · 0.70

Tested by

no test coverage detected