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

Function removeItem

app/src/persistence/sqlite.js:96–103  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

94}
95
96async function removeItem(id) {
97 return new Promise((acc, rej) => {
98 db.run('DELETE FROM todo_items WHERE id = ?', [id], err => {
99 if (err) return rej(err);
100 acc();
101 });
102 });
103}
104
105module.exports = {
106 init,

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…