style(cache): 格式化代码注释中的空格并添加 DISTINCT 选项

- 修复了缓存相关文件中注释开头缺少空格的问题
- 在 db/hotimedb.go 中为 vcond 数组添加了 "DISTINCT" 选项
- 注释掉了 session.go 中的并发控制代码以简化实现
This commit is contained in:
2026-01-22 02:44:53 +08:00
parent 2ecb12bd7d
commit 7843f7e8d6
13 changed files with 26 additions and 19 deletions
+1 -1
View File
@@ -891,7 +891,7 @@ func (that *HoTimeDB) Count(table string, qu ...interface{}) int {
}
var condition = []string{"AND", "OR"}
var vcond = []string{"GROUP", "ORDER", "LIMIT"}
var vcond = []string{"GROUP", "ORDER", "LIMIT", "DISTINCT"}
// Count 计数
func (that *HoTimeDB) Sum(table string, column string, qu ...interface{}) float64 {