feat: mysql 单后端精简分支 — SQLAlchemy 2.0 async + aiomysql + alembic
This commit is contained in:
@@ -1,13 +1,6 @@
|
||||
# ===== 数据库后端:mysql 或 mongodb =====
|
||||
DB_BACKEND=mongodb
|
||||
|
||||
# ===== MySQL(DB_BACKEND=mysql 时必填)=====
|
||||
# ===== MySQL =====
|
||||
MYSQL_DSN=mysql+aiomysql://root:root@127.0.0.1:3306/app?charset=utf8mb4
|
||||
|
||||
# ===== MongoDB(DB_BACKEND=mongodb 时必填)=====
|
||||
MONGO_DSN=mongodb://127.0.0.1:27017
|
||||
MONGO_DB=app
|
||||
|
||||
# ===== 应用 =====
|
||||
APP_NAME=fastapi-template
|
||||
APP_ENV=dev
|
||||
|
||||
Reference in New Issue
Block a user