Files
tasks/common/persistence/visibility/store/query/nil_converter.go
zeekay 5a601d081b rebrand: go.temporal.io/server -> github.com/hanzoai/tasks
Full module path rebrand from Temporal to Hanzo Tasks:
- go.mod module: github.com/hanzoai/tasks
- All internal Go imports updated (1906 files)
- cmd/server renamed to cmd/tasksd
- Binary name: tasksd (was temporal-server)
- Docker images: hanzoai/tasks (was temporalio/server)
- README rewritten with Hanzo Tasks branding
- LLM.md created with integration notes
- Makefile, goreleaser, CI workflows updated
- go.temporal.io/sdk and go.temporal.io/api imports preserved (separate repos)

Fork of Temporal.io (MIT license).
2026-03-19 10:36:40 -07:00

94 lines
2.0 KiB
Go

package query
import (
"github.com/hanzoai/tasks/common/namespace"
"github.com/hanzoai/tasks/common/searchattribute"
)
// nilStoreQueryConverter is a dummy query converter implementation that returns nil value as the
// result of converting the query.
// It can be useful if you just need to traverse the query and collect information using the
// SearchAttributeInterceptor.
type nilStoreQueryConverter struct{}
var _ StoreQueryConverter[any] = (*nilStoreQueryConverter)(nil)
func (c *nilStoreQueryConverter) GetDatetimeFormat() string {
return ""
}
func (c *nilStoreQueryConverter) BuildParenExpr(expr any) (any, error) {
return nil, nil
}
func (c *nilStoreQueryConverter) BuildNotExpr(expr any) (any, error) {
return nil, nil
}
func (c *nilStoreQueryConverter) BuildAndExpr(exprs ...any) (any, error) {
return nil, nil
}
func (c *nilStoreQueryConverter) BuildOrExpr(exprs ...any) (any, error) {
return nil, nil
}
func (c *nilStoreQueryConverter) ConvertComparisonExpr(
operator string,
col *SAColumn,
value any,
) (any, error) {
return nil, nil
}
func (c *nilStoreQueryConverter) ConvertKeywordComparisonExpr(
operator string,
col *SAColumn,
value any,
) (any, error) {
return nil, nil
}
func (c *nilStoreQueryConverter) ConvertKeywordListComparisonExpr(
operator string,
col *SAColumn,
value any,
) (any, error) {
return nil, nil
}
func (c *nilStoreQueryConverter) ConvertTextComparisonExpr(
operator string,
col *SAColumn,
value any,
) (any, error) {
return nil, nil
}
func (c *nilStoreQueryConverter) ConvertRangeExpr(
operator string,
col *SAColumn,
from, to any,
) (any, error) {
return nil, nil
}
func (c *nilStoreQueryConverter) ConvertIsExpr(operator string, col *SAColumn) (any, error) {
return nil, nil
}
type NilQueryConverter = *QueryConverter[any]
func NewNilQueryConverter(
namespaceName namespace.Name,
saTypeMap searchattribute.NameTypeMap,
saMapper searchattribute.Mapper,
) NilQueryConverter {
return NewQueryConverter(
&nilStoreQueryConverter{},
namespaceName,
saTypeMap,
saMapper,
)
}