MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-workbench / updateWorkbenchDB

Function updateWorkbenchDB

src/contexts/dbContext.tsx:159–167  ·  view source on GitHub ↗
(db: WorkbenchDB, sqliteFilePath: string)

Source from the content-addressed store, hash-verified

157 };
158
159 const updateWorkbenchDB = async (db: WorkbenchDB, sqliteFilePath: string) => {
160 updateLoadingStatus(100);
161 setValue({
162 db,
163 initialized: true,
164 importedSqliteFilePath: sqliteFilePath,
165 scanInfo: parseScanInfo(await db.getScanInfo()),
166 });
167 };
168
169 function sqliteParser(sqliteFilePath: string, preventNavigation?: boolean) {
170 startImport();

Callers 2

sqliteParserFunction · 0.85
jsonParserFunction · 0.85

Calls 2

parseScanInfoFunction · 0.90
getScanInfoMethod · 0.80

Tested by

no test coverage detected