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

Function deleteItemAsync

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

Source from the content-addressed store, hash-verified

210}
211
212async function deleteItemAsync(db: SQLiteDatabase, id: number): Promise<void> {
213 await db.runAsync('DELETE FROM items WHERE id = ?;', id);
214}
215
216async function migrateDbIfNeeded(db: SQLiteDatabase) {
217 // Always sync libSQL first to prevent conflicts between local and remote databases

Callers 1

MainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected