fix: Add missing await to create_database (#162)
Added missing await for database creation in PGVectorAdapter Fix #COG-170
This commit is contained in:
parent
b329d50a81
commit
1088b58f11
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ async def create_db_and_tables():
|
|||
vector_engine = get_vector_engine()
|
||||
|
||||
if vector_config.vector_db_provider == "pgvector":
|
||||
vector_engine.create_database()
|
||||
await vector_engine.create_database()
|
||||
async with vector_engine.engine.begin() as connection:
|
||||
await connection.execute(text("CREATE EXTENSION IF NOT EXISTS vector;"))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue