File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,15 +43,15 @@ def psycopg_connect(dbapi_connection, connection_record):
4343 psycopg_async_type_engine = create_async_engine ('postgresql+psycopg://localhost/pgvector_python_test' )
4444
4545 @event .listens_for (psycopg_async_type_engine .sync_engine , "connect" )
46- def connect (dbapi_connection , connection_record ):
46+ def psycopg_async_connect (dbapi_connection , connection_record ):
4747 from pgvector .psycopg import register_vector_async
4848 dbapi_connection .run_async (register_vector_async )
4949
5050 asyncpg_engine = create_async_engine ('postgresql+asyncpg://localhost/pgvector_python_test' )
5151 asyncpg_type_engine = create_async_engine ('postgresql+asyncpg://localhost/pgvector_python_test' )
5252
5353 @event .listens_for (asyncpg_type_engine .sync_engine , "connect" )
54- def connect (dbapi_connection , connection_record ):
54+ def asyncpg_connect (dbapi_connection , connection_record ):
5555 from pgvector .asyncpg import register_vector
5656 dbapi_connection .run_async (register_vector )
5757
You can’t perform that action at this time.
0 commit comments