MCPcopy Create free account
hub / github.com/docker/getting-started / updateItem

Function updateItem

app/src/persistence/sqlite.js:83–94  ·  view source on GitHub ↗
(id, item)

Source from the content-addressed store, hash-verified

81}
82
83async function updateItem(id, item) {
84 return new Promise((acc, rej) => {
85 db.run(
86 'UPDATE todo_items SET name=?, completed=? WHERE id = ?',
87 [item.name, item.completed ? 1 : 0, id],
88 err => {
89 if (err) return rej(err);
90 acc();
91 },
92 );
93 });
94}
95
96async function removeItem(id) {
97 return new Promise((acc, rej) => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…