We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3de7832 commit 37b148fCopy full SHA for 37b148f
pgvector/psycopg2/register.py
@@ -5,11 +5,10 @@
5
from .vector import register_vector_info
6
7
8
-# TODO remove default value for conn_or_curs in 0.4.0
9
# TODO make globally False by default in 0.4.0
10
# note: register_adapter is always global
11
# TODO make arrays True by defalt in 0.4.0
12
-def register_vector(conn_or_curs=None, globally=True, arrays=False):
+def register_vector(conn_or_curs, globally=True, arrays=False):
13
conn = conn_or_curs if hasattr(conn_or_curs, 'cursor') else conn_or_curs.connection
14
cur = conn.cursor(cursor_factory=cursor)
15
scope = None if globally else conn_or_curs
0 commit comments