Use globals for the database connection

- remove the factory functions for creating engines and sessions
- define global engine, connection, and session objects to be used
  everywhere in the urban_meal_delivery package
This commit is contained in:
Alexander Hess 2021-01-04 18:50:26 +01:00
commit 2e3ccd14d5
Signed by: alexander
GPG key ID: 344EA5AB10D868E0
8 changed files with 74 additions and 24 deletions

View file

@ -103,8 +103,7 @@
"metadata": {},
"outputs": [],
"source": [
"_engine = db.make_engine()\n",
"connection = _engine.connect()"
"connection = db.connection"
]
},
{