Get an AsyncSession with default expire_on_commit=False. Returns: AsyncSession: Configured session with expire_on_commit=False
()
| 15 | |
| 16 | |
| 17 | def async_session() -> AsyncSession: |
| 18 | """ |
| 19 | Get an AsyncSession with default expire_on_commit=False. |
| 20 | |
| 21 | Returns: |
| 22 | AsyncSession: Configured session with expire_on_commit=False |
| 23 | """ |
| 24 | if engine is None: |
| 25 | raise RuntimeError("Database not initialized. Call init_database() first.") |
| 26 | |
| 27 | return AsyncSession(engine, expire_on_commit=False) |
no outgoing calls
no test coverage detected