MCPcopy Create free account
hub / github.com/CommE2E/comm / setSQLiteQueryExecutor

Function setSQLiteQueryExecutor

web/shared-worker/worker/worker-database.js:24–33  ·  view source on GitHub ↗
(
  newSQLiteQueryExecutor: ?SQLiteQueryExecutorWrapper,
  id: DatabaseIdentifier = databaseIdentifier.MAIN,
)

Source from the content-addressed store, hash-verified

22}
23
24function setSQLiteQueryExecutor(
25 newSQLiteQueryExecutor: ?SQLiteQueryExecutorWrapper,
26 id: DatabaseIdentifier = databaseIdentifier.MAIN,
27) {
28 if (id === databaseIdentifier.RESTORED) {
29 restoredQueryExecutor = newSQLiteQueryExecutor;
30 return;
31 }
32 mainQueryExecutor = newSQLiteQueryExecutor;
33}
34
35let dbModule: ?EmscriptenModule = null;
36

Callers 3

initDatabaseFunction · 0.90
processAppRequestFunction · 0.90
restoreBackupFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected