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

Function deleteItemAsync

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

Source from the content-addressed store, hash-verified

154}
155
156async function deleteItemAsync(db: SQLiteDatabase, id: number): Promise<void> {
157 await db.runAsync('DELETE FROM items WHERE id = ?;', id);
158}
159
160async function migrateDbIfNeeded(db: SQLiteDatabase) {
161 const DATABASE_VERSION = 1;

Callers 1

MainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected