Pythonで使えるデータベースにはMySQL、Postgres、SQLite、Redis、MongoDB、CouchDBなどなどありますが、ここでSQLAlchemyを利用します ...
from typing import AsyncGenerator from sqlalchemy import NullPool from sqlalchemy.ext.asyncio import AsyncSession, async_sessionmaker, create_async_engine from config import settings engine = ...