try few things

This commit is contained in:
Vasilije 2024-05-25 17:20:35 +02:00
parent cf249a522e
commit 11f2160605

View file

@ -1,13 +1,9 @@
import duckdb
import os
class DuckDBAdapter():
def __init__(self, db_path: str, db_name: str):
if db_path is None:
db_path = "/Users/runner/work/cognee/cognee/.cognee_system"
if db_name is None:
db_name = "cognee.db"
db_location = db_path + "/" + db_name
db_location = os.path.abspath(os.path.join(db_path, db_name))
self.get_connection = lambda: duckdb.connect(db_location)