created initial sql engine

master
Calum Andrew Morrell 2025-01-03 07:52:32 +00:00
parent 4126bc6b7a
commit 7d93da417b
1 changed files with 7 additions and 0 deletions

7
dg_osm/db/engine.py Normal file
View File

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