]> git.ipfire.org Git - thirdparty/psycopg.git/commit
feat(crdb): add CrdbConnection class
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 23 May 2022 00:37:58 +0000 (02:37 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 12 Jul 2022 11:58:34 +0000 (12:58 +0100)
commitf29628d87d5636eb0c99760deb0624ed2a017171
tree611cc13f2a9517728bf9150cd81f118e1f484cf6
parent9adc10b3c8d61304f40df8951b2c26b494aca504
feat(crdb): add CrdbConnection class

Drop the automatic detection of crdb. It seems dangerous to change the
program types based on external factors such as the database connected
to.

Generate and use a crdb-specific types oids map, on which to build the
adapters map.
psycopg/psycopg/connection.py
psycopg/psycopg/connection_async.py
psycopg/psycopg/crdb.py
tests/crdb/test_adapt.py
tests/crdb/test_connection.py [new file with mode: 0644]
tests/crdb/test_no_crdb.py [new file with mode: 0644]
tests/fix_crdb.py
tests/fix_db.py
tools/update_oids.py