feat(db): 实现多数据库方言与表名前缀支持功能
- 扩展 Dialect 接口,添加 QuoteIdentifier 和 QuoteChar 方法 - 新建 identifier.go,实现 IdentifierProcessor 及智能解析逻辑 - 在 db.go 中集成处理器,添加 T() 和 C() 辅助方法 - 修改 crud.go 中 Select/Insert/Update/Delete/buildJoin 等方法 - 修改 where.go 中 varCond 等条件处理方法 - 检查并更新 builder.go 相关功能 - 编写测试用例验证多数据库和前缀功能 - 移除调试日志文件以完成开发任务
This commit is contained in:
@@ -4,25 +4,25 @@ overview: 为 HoTimeDB ORM 实现完整的多数据库(MySQL/PostgreSQL/SQLite
|
||||
todos:
|
||||
- id: dialect-interface
|
||||
content: 扩展 Dialect 接口,添加 QuoteIdentifier 和 QuoteChar 方法
|
||||
status: pending
|
||||
status: completed
|
||||
- id: identifier-processor
|
||||
content: 新建 identifier.go,实现 IdentifierProcessor 及智能解析逻辑
|
||||
status: pending
|
||||
status: completed
|
||||
- id: db-integration
|
||||
content: 在 db.go 中集成处理器,添加 T() 和 C() 辅助方法
|
||||
status: pending
|
||||
status: completed
|
||||
- id: crud-update
|
||||
content: 修改 crud.go 中 Select/Insert/Update/Delete/buildJoin 等方法
|
||||
status: pending
|
||||
status: completed
|
||||
- id: where-update
|
||||
content: 修改 where.go 中 varCond 等条件处理方法
|
||||
status: pending
|
||||
status: completed
|
||||
- id: builder-check
|
||||
content: 检查 builder.go 是否需要额外修改
|
||||
status: pending
|
||||
status: completed
|
||||
- id: testing
|
||||
content: 编写测试用例验证多数据库和前缀功能
|
||||
status: pending
|
||||
status: completed
|
||||
- id: todo-1769037903242-d7aip6nh1
|
||||
content: ""
|
||||
status: pending
|
||||
|
||||
Reference in New Issue
Block a user