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

Function getItems

app/src/persistence/mysql.js:62–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60}
61
62async function getItems() {
63 return new Promise((acc, rej) => {
64 pool.query('SELECT * FROM todo_items', (err, rows) => {
65 if (err) return rej(err);
66 acc(
67 rows.map(item =>
68 Object.assign({}, item, {
69 completed: item.completed === 1,
70 }),
71 ),
72 );
73 });
74 });
75}
76
77async function getItem(id) {
78 return new Promise((acc, rej) => {

Callers 1

getItems.spec.jsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…