from __future__ import annotations

import asyncio
from pathlib import Path

from vk_parser_app.db import apply_migrations, close_pool


async def main() -> None:
    root = Path(__file__).resolve().parents[1]
    await apply_migrations(root / "db" / "migrations")
    await close_pool()


if __name__ == "__main__":
    asyncio.run(main())
