aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/query/parser_test.go
AgeCommit message (Collapse)Author
2025-07-28Add regex operatorJP Appel
Implemented regex operator using go flavored regular expressions. Added optimization to combine regex's in `OR` clauses.
2025-07-27Remove unimplemented external command operatorsJP Appel
Executing external commands against file metadata is a serious security risk. The desired features of most external commands can be safely implemented using SQLite native functions.
2025-06-15Update tests and fix minor bugsJP Appel
2025-06-14Move clause tree optimizationsJP Appel
2025-06-13Add only child optimization to query parserJP Appel
2025-06-10Add method to merge subtrees in a clause treeJP Appel
Add `Flatten` method to `query.Clause` which merges a parent clause with its children. The merge occurs if clauses have the same operator. The merge transforms the tree similar to the examples below: (+ (+ (+ (+ a b) c) d) e) -> (+ a b c d e) (+ (+ a b) c (* d e)) -> (+ a b c (* d e))