MCPcopy
hub / github.com/dexie/Dexie.js / deleteList

Method deleteList

samples/angular/src/app/item-list.component.ts:164–170  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

162 }
163
164 async deleteList() {
165 // Delete all items in this list, then the list itself (atomically)
166 await db.transaction('rw', db.todoItems, db.todoLists, async () => {
167 await db.todoItems.where({ todoListId: this.todoListId() }).delete();
168 await db.todoLists.delete(this.todoListId());
169 });
170 }
171}

Callers

nothing calls this directly

Calls 3

transactionMethod · 0.65
deleteMethod · 0.65
whereMethod · 0.65

Tested by

no test coverage detected