created initial sql engine
parent
4126bc6b7a
commit
7d93da417b
|
|
@ -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)
|
||||||
Loading…
Reference in New Issue