Skip to content

Commit

Permalink
fix sqlalchemy metadata concurrency issue
Browse files Browse the repository at this point in the history
Signed-off-by: shanhaikang.shk <[email protected]>
  • Loading branch information
GITHUBear committed Dec 5, 2024
1 parent b92da4f commit 8b771a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyobvector/client/ob_vec_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def __init__(
)
self.engine = create_engine(connection_str, **kwargs)
self.metadata_obj = MetaData()
self.metadata_obj.reflect(bind=self.engine)

with self.engine.connect() as conn:
with conn.begin():
Expand Down

0 comments on commit 8b771a5

Please sign in to comment.