poc: Using a custom type for labels backed by JSONB

This commit is contained in:
Andrey Melnikov
2020-08-03 15:25:18 -07:00
parent 8a58fb9705
commit 023713da32
4 changed files with 64 additions and 1 deletions

View File

@@ -745,6 +745,16 @@ func (c *Client) CountWorkflowExecutions(namespace, workflowTemplateUID, workflo
RunWith(c.DB).
QueryRow().
Scan(&count)
//
//test := types.Labels{}
//test["test"] = "how"
//test["language"] = "golang"
//
//_, err = sb.Update("workflow_executions").
// SetMap(sq.Eq{
// "labels": test,
// }).Where("id = 738").RunWith(c.DB).
// Exec()
return
}