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

Function storeItem

app/src/persistence/sqlite.js:70–81  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

68}
69
70async function storeItem(item) {
71 return new Promise((acc, rej) => {
72 db.run(
73 'INSERT INTO todo_items (id, name, completed) VALUES (?, ?, ?)',
74 [item.id, item.name, item.completed ? 1 : 0],
75 err => {
76 if (err) return rej(err);
77 acc();
78 },
79 );
80 });
81}
82
83async function updateItem(id, item) {
84 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…