MCPcopy Create free account
hub / github.com/Facets-cloud/flow / Playbook

Struct Playbook

internal/flowdb/db.go:888–896  ·  view source on GitHub ↗

---------- playbook models ---------- Playbook mirrors the playbooks table.

Source from the content-addressed store, hash-verified

886 }
887 out = append(out, w)
888 }
889 return out, rows.Err()
890}
891
892func UpsertWorkdir(db *sql.DB, path, name, description, gitRemote string) error {
893 now := NowISO()
894 _, err := db.Exec(`
895 INSERT INTO workdirs (path, name, description, git_remote, last_used_at, created_at)
896 VALUES (?, ?, ?, ?, ?, ?)
897 ON CONFLICT(path) DO UPDATE SET
898 name = COALESCE(NULLIF(excluded.name, ''), workdirs.name),
899 description = COALESCE(NULLIF(excluded.description, ''), workdirs.description),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected