fix: log db path
This commit is contained in:
parent
279e4792a7
commit
2e70c23de8
1 changed files with 2 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue