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

Function getSQLiteQueryExecutorOrThrow

web/shared-worker/worker/shared-worker.js:247–258  ·  view source on GitHub ↗
(
  id: DatabaseIdentifier,
  message: WorkerRequestMessage,
)

Source from the content-addressed store, hash-verified

245}
246
247function getSQLiteQueryExecutorOrThrow(
248 id: DatabaseIdentifier,
249 message: WorkerRequestMessage,
250): SQLiteQueryExecutorWrapper {
251 const executor = getSQLiteQueryExecutor(id);
252 if (!executor) {
253 throw new Error(
254 `${id} executor not initialized, unable to process request type: ${message.type}`,
255 );
256 }
257 return executor;
258}
259
260async function processAppRequest(
261 message: WorkerRequestMessage,

Callers 1

processAppRequestFunction · 0.85

Calls 1

getSQLiteQueryExecutorFunction · 0.90

Tested by

no test coverage detected