feat(database): 支持使用 SQLite 数据库

- 在 `.env.example` 文件中添加了 `DATABASE_TYPE` 变量,用于指定数据库类型,默认使用 mysql
 - 添加了 `DATABASE_TYPE` 和 `SQLITE_DATABASE` 配置项
 - 在使用 mysql 时,对其他 MySQL 配置进行验证
 - 添加 `aiosqlite` 依赖
This commit is contained in:
happy game
2025-05-07 22:19:46 +08:00
parent 1ff494416b
commit 12f6665519
4 changed files with 35 additions and 14 deletions
+1
View File
@@ -14,6 +14,7 @@ cryptography # 支持 MySQL 8+ caching_sha2_password 验证
pymysql
sqlalchemy
aiomysql
aiosqlite
databases
python-dotenv
apscheduler