We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3b8e84 commit bd36d64Copy full SHA for bd36d64
tests/test_sqlalchemy.py
@@ -7,9 +7,9 @@
7
from sqlalchemy.sql import func
8
9
engine = create_engine('postgresql+psycopg2://localhost/pgvector_python_test')
10
-with engine.connect() as con:
11
- con.execute(text('CREATE EXTENSION IF NOT EXISTS vector'))
12
- con.commit()
+with Session(engine) as session:
+ session.execute(text('CREATE EXTENSION IF NOT EXISTS vector'))
+ session.commit()
13
14
Base = declarative_base()
15
0 commit comments