Buckets:

download
raw
651 Bytes
from alembic import command
from alembic.config import Config
from sqlalchemy.engine import Connection
from fief.db import AsyncEngine
from fief.paths import ALEMBIC_CONFIG_FILE
def _get_alembic_config(connection: Connection) -> Config:
config = Config(ALEMBIC_CONFIG_FILE)
config.attributes["connection"] = connection
return config
async def migrate_schema(engine: AsyncEngine) -> None:
async with engine.begin() as connection:
def _run_upgrade(connection):
alembic_config = _get_alembic_config(connection)
command.upgrade(alembic_config, "head")
await connection.run_sync(_run_upgrade)

Xet Storage Details

Size:
651 Bytes
·
Xet hash:
4a7baec9eff402e8f3a5022c85ea68455b11fa41394da1310d3489789585bd57

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.