fix: minor changes from PR comments
This commit is contained in:
parent
c6ff0eca3d
commit
8030c949f2
3 changed files with 3 additions and 3 deletions
2
.github/workflows/vector_db_tests.yml
vendored
2
.github/workflows/vector_db_tests.yml
vendored
|
|
@ -149,7 +149,7 @@ jobs:
|
||||||
VECTOR_DB_PORT: 5432
|
VECTOR_DB_PORT: 5432
|
||||||
VECTOR_DB_USERNAME: cognee
|
VECTOR_DB_USERNAME: cognee
|
||||||
VECTOR_DB_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
|
VECTOR_DB_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
|
||||||
VECTOR_DATASET_DATABASE_HANDLER: pgvector
|
VECTOR_DATASET_DATABASE_HANDLER: pgvector_local
|
||||||
run: uv run python ./cognee/tests/test_permissions.py
|
run: uv run python ./cognee/tests/test_permissions.py
|
||||||
|
|
||||||
run-lancedb-tests:
|
run-lancedb-tests:
|
||||||
|
|
|
||||||
|
|
@ -559,7 +559,7 @@ class SQLAlchemyAdapter:
|
||||||
# Connect to maintenance db in order to create new database
|
# Connect to maintenance db in order to create new database
|
||||||
# Make sure to execute CREATE DATABASE outside of transaction block, and set AUTOCOMMIT isolation level
|
# Make sure to execute CREATE DATABASE outside of transaction block, and set AUTOCOMMIT isolation level
|
||||||
connection = await self.maintenance_engine.connect()
|
connection = await self.maintenance_engine.connect()
|
||||||
await connection.execution_options(isolation_level="AUTOCOMMIT")
|
connection = await connection.execution_options(isolation_level="AUTOCOMMIT")
|
||||||
await connection.execute(text(f'CREATE DATABASE "{self.engine.url.database}";'))
|
await connection.execute(text(f'CREATE DATABASE "{self.engine.url.database}";'))
|
||||||
|
|
||||||
# Clean up resources
|
# Clean up resources
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ class PGVectorDatasetDatabaseHandler(DatasetDatabaseHandlerInterface):
|
||||||
"username": vector_config.vector_db_username,
|
"username": vector_config.vector_db_username,
|
||||||
"password": vector_config.vector_db_password,
|
"password": vector_config.vector_db_password,
|
||||||
},
|
},
|
||||||
"vector_dataset_database_handler": "pgvector",
|
"vector_dataset_database_handler": "pgvector_local",
|
||||||
}
|
}
|
||||||
|
|
||||||
from .create_db_and_tables import create_pg_database
|
from .create_db_and_tables import create_pg_database
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue