(db_url: str)
| 83 | |
| 84 | |
| 85 | def get_engine(db_url: str): |
| 86 | global _engine, _SessionLocal |
| 87 | if _engine is None: |
| 88 | _engine = create_engine(db_url) |
| 89 | _SessionLocal = sessionmaker(bind=_engine) |
| 90 | return _engine, _SessionLocal |
| 91 | |
| 92 | |
| 93 | @app.get('/') |
no outgoing calls
no test coverage detected