refactor: 移除对 MySQL 的支持,更新文档和配置以仅支持 SQLite 和 PostgreSQL

This commit is contained in:
Windpicker-owo
2025-12-04 23:30:43 +08:00
parent 63cb81aab6
commit 06a45b3639
18 changed files with 54 additions and 247 deletions

View File

@@ -157,7 +157,7 @@ python __main__.py # 备用入口
**调试技巧**:
- 检查 `logs/app_*.jsonl` 结构化日志
- 使用 `get_errors()` 工具查看编译错误
- 数据库问题:查看 `data/MaiBot.db`SQLiteMySQL 连接
- 数据库问题:查看 `data/MaiBot.db`SQLitePostgreSQL 连接
## 📋 关键约定与模式
@@ -165,7 +165,7 @@ python __main__.py # 备用入口
**全局配置**: `src/config/config.py``global_config` 单例
- 通过 TOML 文件驱动(`config/bot_config.toml`
- 支持环境变量覆盖(`.env`
- 数据库类型切换:`database.database_type = "sqlite" | "mysql"`
- 数据库类型切换:`database.database_type = "sqlite" | "postgresql"`
### 事件系统
**Event Manager** (`src/plugin_system/core/event_manager.py`):