Commit cea4331
authored
Update tableby.go
table: add QueryBy and DeleteBy for multi-column filtering at Table level
Provide user-friendly methods QueryBy and DeleteBy that apply multi-column (col→val) filters across all buckets.
These new methods panic if given nil or empty filters, ensuring predictable behavior and avoiding accidental full-table operations.
QueryBy returns nil when no matches are found, consistent with the low-level API.
DeleteBy performs removals without returning deleted counts, simplifying the interface for typical use cases.1 parent a41ed3f commit cea4331
1 file changed
+5
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
26 | | - | |
27 | | - | |
| 25 | + | |
28 | 26 | | |
29 | 27 | | |
30 | 28 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
43 | 32 | | |
44 | | - | |
45 | 33 | | |
0 commit comments