MCPcopy Create free account
hub / github.com/dbunt1tled/python-fast-api / run_async_migrations

Function run_async_migrations

src/database/migrations/env.py:81–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79
80
81async 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
99def run_migrations_online() -> None:

Callers 1

run_migrations_onlineFunction · 0.85

Calls 2

urlFunction · 0.85
connectMethod · 0.80

Tested by

no test coverage detected