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

Function getSQLiteQueryExecutor

web/shared-worker/worker/worker-database.js:15–22  ·  view source on GitHub ↗
(
  id: DatabaseIdentifier = databaseIdentifier.MAIN,
)

Source from the content-addressed store, hash-verified

13let restoredQueryExecutor: ?SQLiteQueryExecutorWrapper = null;
14
15function getSQLiteQueryExecutor(
16 id: DatabaseIdentifier = databaseIdentifier.MAIN,
17): ?SQLiteQueryExecutorWrapper {
18 if (id === databaseIdentifier.RESTORED) {
19 return restoredQueryExecutor;
20 }
21 return mainQueryExecutor;
22}
23
24function setSQLiteQueryExecutor(
25 newSQLiteQueryExecutor: ?SQLiteQueryExecutorWrapper,

Callers 10

initDatabaseFunction · 0.90
persistFunction · 0.90
processAppRequestFunction · 0.90
persistCryptoStoreFunction · 0.90
getOrCreateOlmAccountFunction · 0.90
getOlmSessionsFunction · 0.90
initializeCryptoAccountFunction · 0.90
encryptAndPersistFunction · 0.90
decryptAndPersistFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected