aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/query/compiler.go
diff options
context:
space:
mode:
authorJP Appel <jeanpierre.appel01@gmail.com>2025-07-27 20:50:37 -0400
committerJP Appel <jeanpierre.appel01@gmail.com>2025-07-27 21:15:16 -0400
commit7b5cd075161bd4e1a05070d51cc64b38882ae74b (patch)
treec4afcd5999895ec8974747c1c721b6876bd0246b /pkg/query/compiler.go
parent75c3d32881a3b382ab6b63f25d177d40a2ca4256 (diff)
Remove unimplemented external command operators
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.
Diffstat (limited to 'pkg/query/compiler.go')
-rw-r--r--pkg/query/compiler.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/pkg/query/compiler.go b/pkg/query/compiler.go
index 9edfeb5..1e946a6 100644
--- a/pkg/query/compiler.go
+++ b/pkg/query/compiler.go
@@ -99,10 +99,6 @@ func (s Statements) buildCompile(b *strings.Builder, delim string) ([]any, error
} else {
opStr = "!= "
}
- case OP_PIPE:
- opStr = "?op_pipe "
- case OP_ARG:
- opStr = "?op_arg "
default:
return nil, &CompileError{
fmt.Sprintf("unexpected query.opType %#v", op),