MCPcopy Create free account
hub / github.com/expo/examples / updateItemAsDoneAsync

Function updateItemAsDoneAsync

with-sqlite/App.tsx:149–154  ·  view source on GitHub ↗
(
  db: SQLiteDatabase,
  id: number
)

Source from the content-addressed store, hash-verified

147}
148
149async function updateItemAsDoneAsync(
150 db: SQLiteDatabase,
151 id: number
152): Promise<void> {
153 await db.runAsync('UPDATE items SET done = ? WHERE id = ?;', true, id);
154}
155
156async function deleteItemAsync(db: SQLiteDatabase, id: number): Promise<void> {
157 await db.runAsync('DELETE FROM items WHERE id = ?;', id);

Callers 1

MainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected