MCPcopy Create free account
hub / github.com/crossjoin-io/crossjoin / StoreWorkflow

Method StoreWorkflow

api/workflows.go:11–16  ·  view source on GitHub ↗
(hash string, workflow config.Workflow)

Source from the content-addressed store, hash-verified

9)
10
11func (api *API) StoreWorkflow(hash string, workflow config.Workflow) error {
12 _, err := api.db.Exec("REPLACE INTO workflows (config_hash, id, text) VALUES ($1, $2, $3)",
13 hash, workflow.ID, workflow.String(),
14 )
15 return err
16}
17
18func (api *API) StartWorkflow(hash, id string, workflowInput map[string]interface{}) error {
19 // Create a workflow run

Callers 1

LoadConfigMethod · 0.95

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected