Files
tasks/common/persistence/sql/sqlplugin/history_chasm.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

57 lines
1.8 KiB
Go

package sqlplugin
import (
"context"
"database/sql"
"github.com/hanzoai/tasks/common/primitives"
)
type (
// ChasmNodeMapsRow represents a row in the chasm_node_maps table.
ChasmNodeMapsRow struct {
ShardID int32
NamespaceID primitives.UUID
WorkflowID string
RunID primitives.UUID
ChasmPath string
Metadata []byte
MetadataEncoding string
Data []byte
DataEncoding string
}
// ChasmNodeMapsFilter represents parameters to selecting a particular subset of
// a workflow's CHASM nodes.
ChasmNodeMapsFilter struct {
ShardID int32
NamespaceID primitives.UUID
WorkflowID string
RunID primitives.UUID
ChasmPaths []string
}
// ChasmNodeMapsAllFilter represents parameters to selecting all of a workflow's
// CHASM nodes.
ChasmNodeMapsAllFilter struct {
ShardID int32
NamespaceID primitives.UUID
WorkflowID string
RunID primitives.UUID
}
HistoryExecutionChasm interface {
// SelectAllFromChasmNodeMaps returns all rows related to a particular workflow from the chasm_node_maps table.
SelectAllFromChasmNodeMaps(ctx context.Context, filter ChasmNodeMapsAllFilter) ([]ChasmNodeMapsRow, error)
// ReplaceIntoChasmNodeMaps replaces one or more rows in the chasm_node_maps table.
ReplaceIntoChasmNodeMaps(ctx context.Context, rows []ChasmNodeMapsRow) (sql.Result, error)
// DeleteFromChasmNodeMaps deletes one or more rows in the chasm_node_maps table.
DeleteFromChasmNodeMaps(ctx context.Context, filter ChasmNodeMapsFilter) (sql.Result, error)
// DeleteAllFromChasmNodeMaps deletes all rows related to a particular workflow in the chasm_node_maps table.
DeleteAllFromChasmNodeMaps(ctx context.Context, filter ChasmNodeMapsAllFilter) (sql.Result, error)
}
)