(
config: dict[str, Any] | TortoiseConfig,
)
| 150 | |
| 151 | @contextlib.asynccontextmanager |
| 152 | async def tortoise_cli_context( |
| 153 | config: dict[str, Any] | TortoiseConfig, |
| 154 | ) -> AsyncGenerator[TortoiseContext, None]: |
| 155 | async with TortoiseContext() as ctx: |
| 156 | await ctx.init(config=config) |
| 157 | yield ctx |
| 158 | |
| 159 | |
| 160 | class _NoopRecorder(MigrationRecorder): |
no test coverage detected
searching dependent graphs…