diff options
| author | JP Appel <jeanpierre.appel01@gmail.com> | 2025-07-28 23:40:23 -0400 |
|---|---|---|
| committer | JP Appel <jeanpierre.appel01@gmail.com> | 2025-07-28 23:40:23 -0400 |
| commit | 209af758b64d586e1c0aec3ad2eb4b56740aeddf (patch) | |
| tree | 61d8fcebabb925456a87671558df035097560329 /pkg/query | |
| parent | f829b01a1c92e788f5114cf66c24856be23ec88f (diff) | |
Resolve multiple todos
Diffstat (limited to 'pkg/query')
| -rw-r--r-- | pkg/query/compiler.go | 2 | ||||
| -rw-r--r-- | pkg/query/outputs.go | 2 | ||||
| -rw-r--r-- | pkg/query/parser.go | 1 |
3 files changed, 0 insertions, 5 deletions
diff --git a/pkg/query/compiler.go b/pkg/query/compiler.go index 0637fea..8b71124 100644 --- a/pkg/query/compiler.go +++ b/pkg/query/compiler.go @@ -34,8 +34,6 @@ func (s Statements) buildCompile(b *strings.Builder, delim string) ([]any, error sCount := 0 for cat, catStmts := range s.CategoryPartition() { - // TODO: make sure sorted - // TODO: loop over partitions if len(catStmts) == 0 { continue } diff --git a/pkg/query/outputs.go b/pkg/query/outputs.go index d1e70e8..e3555c1 100644 --- a/pkg/query/outputs.go +++ b/pkg/query/outputs.go @@ -15,7 +15,6 @@ const DefaultOutputFormat string = "%p %T %d authors:%a tags:%t" type OutputToken uint64 -// TODO: support long token names const ( OUT_TOK_STR OutputToken = iota OUT_TOK_PATH // %p %path @@ -28,7 +27,6 @@ const ( OUT_TOK_META // %m %meta ) -// TODO: change interface to use byte slices type Outputer interface { OutputOne(doc *index.Document) (string, error) OutputOneTo(w io.Writer, doc *index.Document) (int, error) diff --git a/pkg/query/parser.go b/pkg/query/parser.go index ce4ee7b..5ff8175 100644 --- a/pkg/query/parser.go +++ b/pkg/query/parser.go @@ -70,7 +70,6 @@ const ( VAL_DATETIME ) -// TODO: rename type Valuer interface { Type() valuerType Compare(Valuer) int |
