Closed clokep closed 11 months ago
This is pulled from my psycopg3 branch, it uses attempt_to_set_autocommit instead of an assert isinstance(conn, psycopg2.extensions.connection) followed by directly setting the autocommit.
attempt_to_set_autocommit
assert isinstance(conn, psycopg2.extensions.connection)
tl;dr we're just being a bit more generic.
This is pulled from my psycopg3 branch, it uses
attempt_to_set_autocommit
instead of anassert isinstance(conn, psycopg2.extensions.connection)
followed by directly setting the autocommit.tl;dr we're just being a bit more generic.