From 2e70c23de82a3edd3fa8b378b44b876d5bbe897d Mon Sep 17 00:00:00 2001 From: Boris Arzentar Date: Tue, 1 Oct 2024 20:39:22 +0200 Subject: [PATCH] fix: log db path --- .../databases/relational/sqlalchemy/SqlAlchemyAdapter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cognee/infrastructure/databases/relational/sqlalchemy/SqlAlchemyAdapter.py b/cognee/infrastructure/databases/relational/sqlalchemy/SqlAlchemyAdapter.py index 3dfbc5680..846c9ce66 100644 --- a/cognee/infrastructure/databases/relational/sqlalchemy/SqlAlchemyAdapter.py +++ b/cognee/infrastructure/databases/relational/sqlalchemy/SqlAlchemyAdapter.py @@ -98,12 +98,13 @@ class SQLAlchemyAdapter(): if self.engine.dialect.name == "sqlite": from cognee.infrastructure.files.storage import LocalStorage + print(f"DB_PATH: {self.db_path}") LocalStorage.remove(self.db_path) self.db_path = None else: async with self.engine.begin() as connection: for table in Base.metadata.sorted_tables: - drop_table_query = text(f'DROP TABLE IF EXISTS {table.name} CASCADE') + drop_table_query = text(f"DROP TABLE IF EXISTS {table.name} CASCADE") await connection.execute(drop_table_query) except Exception as e: