MCPcopy Index your code
hub / github.com/MALSync/MALSync / importEntries

Function importEntries

src/background/database.ts:166–170  ·  view source on GitHub ↗
(type: 'anime' | 'manga', entries: Entry[])

Source from the content-addressed store, hash-verified

164}
165
166async function importEntries(type: 'anime' | 'manga', entries: Entry[]) {
167 const table = type === 'anime' ? db.table('anime') : db.table('manga');
168 await table.clear();
169 return table.bulkPut(entries);
170}
171
172export async function databaseRequest(call: string, param: any) {
173 switch (call) {

Callers 1

importListFunction · 0.85

Calls 1

clearMethod · 0.80

Tested by

no test coverage detected