Skip to content

Commit a8c5d84

Browse files
committed
Updated import
1 parent 9686270 commit a8c5d84

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pgvector/sqlalchemy/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from sqlalchemy.dialects import postgresql
1+
from sqlalchemy.dialects.postgresql.base import ischema_names
22
from sqlalchemy.types import UserDefinedType, Float
33
from ..utils import from_db, to_db
44

@@ -38,5 +38,5 @@ def cosine_distance(self, other):
3838
return self.op('<=>', return_type=Float)(other)
3939

4040

41-
# Register Vector type to PostgreSQL's reflection subsystem
42-
postgresql.base.ischema_names['vector'] = Vector
41+
# for reflection
42+
ischema_names['vector'] = Vector

0 commit comments

Comments
 (0)