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

Function removeItem

app/src/persistence/mysql.js:118–125  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

116}
117
118async function removeItem(id) {
119 return new Promise((acc, rej) => {
120 pool.query('DELETE FROM todo_items WHERE id = ?', [id], err => {
121 if (err) return rej(err);
122 acc();
123 });
124 });
125}
126
127module.exports = {
128 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…