feat: mongodb 单后端精简分支 — Beanie 2.x + pymongo async,移除 MySQL/alembic

This commit is contained in:
2026-08-21 21:28:51 +08:00
parent 981bee5a46
commit c84af64ce8
18 changed files with 25 additions and 763 deletions

View File

@@ -1,10 +1,4 @@
# ===== 数据库后端mysql 或 mongodb =====
DB_BACKEND=mongodb
# ===== MySQLDB_BACKEND=mysql 时必填)=====
MYSQL_DSN=mysql+aiomysql://root:root@127.0.0.1:3306/app?charset=utf8mb4
# ===== MongoDBDB_BACKEND=mongodb 时必填)=====
# ===== MongoDB =====
MONGO_DSN=mongodb://127.0.0.1:27017
MONGO_DB=app