v0.4.0
v0.3.0 -> v0.4.0
Summary
Add NE (not equal) comparison operator, extract a dedicated filter package with an infix expression parser supporting AND/OR/NOT logical operators, and add concurrent slice scan for FIND/QUERY when data exceeds 1024 entries.
翻譯
新增 NE(不等於)比較運算子,提取獨立的 filter 套件支援 AND/OR/NOT 中綴表達式解析,並為 FIND/QUERY 新增超過 1024 筆時的切塊並發掃描。Changes
FEAT
- Add NE (not equal) comparison operator for FIND and QUERY commands
- Add infix expression parser supporting AND, OR, NOT logical operators and parenthesized grouping for QUERY command
- Add operator aliases: GTE/>=, LTE/<=, != for extended comparison syntax
翻譯
- 為 FIND 和 QUERY 命令新增 NE(不等於)比較運算子
- 為 QUERY 命令新增支援 AND、OR、NOT 邏輯運算子及括號分組的中綴表達式解析器
- 新增運算子別名:GTE/>=、LTE/<=、!= 擴展比較語法
PERF
- Add concurrent slice scan (sliceScan) for FIND and QUERY, auto-sharding into 1024-entry chunks when data exceeds threshold
翻譯
- 為 FIND 和 QUERY 新增切塊並發掃描(sliceScan),超過 1024 筆時自動分片並行處理
REFACTOR
- Extract filter package from find.go with Filter interface, Cond struct, and operator/matching logic
- Separate filter components into dedicated files: filter.go, operation.go, parser.go, extension.go
- Simplify Query method signature from field/op/value parameters to single Filter interface
翻譯
- 從 find.go 提取 filter 套件,包含 Filter 介面、Cond 結構及運算子/匹配邏輯
- 將 filter 元件分離為獨立檔案:filter.go、operation.go、parser.go、extension.go
- 簡化 Query 方法簽章,從 field/op/value 參數改為單一 Filter 介面
Files Changed
| File | Status | Tag |
|---|---|---|
core/store/filter/filter.go |
Added | FEAT |
core/store/filter/operation.go |
Added | FEAT |
core/store/filter/parser.go |
Added | FEAT |
core/store/filter/extension.go |
Added | FEAT |
core/store/exec.go |
Modified | REFACTOR |
core/store/find.go |
Modified | PERF |
core/store/query.go |
Modified | PERF |
Generated by SKILL