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

Function storeItem

app/src/persistence/mysql.js:92–103  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

90}
91
92async function storeItem(item) {
93 return new Promise((acc, rej) => {
94 pool.query(
95 'INSERT INTO todo_items (id, name, completed) VALUES (?, ?, ?)',
96 [item.id, item.name, item.completed ? 1 : 0],
97 err => {
98 if (err) return rej(err);
99 acc();
100 },
101 );
102 });
103}
104
105async function updateItem(id, item) {
106 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…