fastapi使用sqlalchemy2.0异步数据库
pip install SQLAlchemy
pip install aiomysql
pip install pydantic-settings
pip install python-dotenv
配置文件config.py
from pydantic_settings import BaseSettings
from functools import lru_cache
class Settings(BaseSettings):
app_name: str = "chf-app"
databa