mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-04 13:22:41 +08:00
poc: Using a custom type for labels backed by JSONB
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user