()
| 79 | |
| 80 | |
| 81 | async def run_async_migrations() -> None: |
| 82 | configuration = config.get_section(config.config_ini_section) |
| 83 | if configuration is None: |
| 84 | configuration = {} |
| 85 | configuration["sqlalchemy.url"] = url() |
| 86 | |
| 87 | connectable = async_engine_from_config( |
| 88 | configuration, |
| 89 | prefix="sqlalchemy.", |
| 90 | poolclass=pool.NullPool, |
| 91 | ) |
| 92 | |
| 93 | async with connectable.connect() as connection: |
| 94 | await connection.run_sync(do_run_migrations) |
| 95 | |
| 96 | await connectable.dispose() |
| 97 | |
| 98 | |
| 99 | def run_migrations_online() -> None: |
no test coverage detected