Commit 90f40b1
committed
refactor(database): 重构数据库配置和连接逻辑以支持多数据库模式
refactor(database): 重构数据库配置和连接逻辑以支持多数据库模式
将 Configuration 类中的 DatabaseMode 改为静态变量,并调整相关方法为静态方法
重构 DatabaseController 的连接逻辑,根据配置动态选择 MySQL 或 SQLite 数据库
更新 Main 类使用静态配置方法,并完善使用说明和联系信息
同时更新 .gitignore 忽略 SQLite 数据库文件
```
这个提交消息:
1. 使用 refactor 类型,因为主要是代码结构调整和优化
2. 添加了 scope(database) 说明修改范围
3. 简明扼要地描述了主要修改内容
4. 在正文中详细说明了具体的重构点
5. 保持了简洁和专业性,同时涵盖了所有重要修改
参考 [#2](#2) 和 [#1](#1)
Co-Authored-By: 🇨🇳钟智强 『上饶满星科技』 <johnmelodymel@qq.com>1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
0 commit comments