Close the global async engine. Call at application shutdown.
()
| 97 | |
| 98 | |
| 99 | async def close_db() -> None: |
| 100 | """Close the global async engine. Call at application shutdown.""" |
| 101 | global async_engine |
| 102 | if async_engine is not None: |
| 103 | await async_engine.dispose() |
| 104 | async_engine = None |
| 105 | |
| 106 | |
| 107 | # ── Type alias for session injection ────────────────────────────────────────── |
nothing calls this directly
no outgoing calls
no test coverage detected