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

Function updateItemAsDoneAsync

with-libsql/App.tsx:205–210  ·  view source on GitHub ↗
(
  db: SQLiteDatabase,
  id: number
)

Source from the content-addressed store, hash-verified

203}
204
205async function updateItemAsDoneAsync(
206 db: SQLiteDatabase,
207 id: number
208): Promise<void> {
209 await db.runAsync('UPDATE items SET done = ? WHERE id = ?;', true, id);
210}
211
212async function deleteItemAsync(db: SQLiteDatabase, id: number): Promise<void> {
213 await db.runAsync('DELETE FROM items WHERE id = ?;', id);

Callers 1

MainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected