MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / UpdateTask

Function UpdateTask

cmd/cql-proxy/model/task.go:196–203  ·  view source on GitHub ↗

UpdateTask save existing task object to database.

(db *gorp.DbMap, t *Task)

Source from the content-addressed store, hash-verified

194
195// UpdateTask save existing task object to database.
196func UpdateTask(db *gorp.DbMap, t *Task) (err error) {
197 t.Updated = time.Now().Unix()
198 _, err = db.Update(t)
199 if err != nil {
200 err = errors.Wrapf(err, "update task failed")
201 }
202 return
203}
204
205// ListTask search and page existing tasks as list.
206func ListTask(db *gorp.DbMap, developer int64, account int64, showAll bool, offset int64, limit int64) (

Callers 3

NewMethod · 0.92
runTaskMethod · 0.92
cleanupTaskMethod · 0.92

Calls 1

UpdateMethod · 0.65

Tested by

no test coverage detected