dg-osm/dg_osm/db/engine.py

8 lines
208 B
Python

import os
from sqlalchemy import create_engine
current_path = os.path.dirname(os.path.abspath(__file__))
database_url = f'sqlite:///{current_path}/dg_osm.db'
engine = create_engine(database_url, echo=True)