MCPcopy Create free account
hub / github.com/electric-sql/electric / getLocalCollection

Function getLocalCollection

packages/agents-runtime/src/setup-context.ts:487–495  ·  view source on GitHub ↗
(collName: string)

Source from the content-addressed store, hash-verified

485 const pendingMutations: Array<PendingSharedStateMutation> = []
486
487 const getLocalCollection = (collName: string): StagedCollection => {
488 const collection = localCollections.get(collName)
489 if (!collection) {
490 throw new Error(
491 `[agent-runtime] Missing staged shared-state collection "${collName}" for "${id}"`
492 )
493 }
494 return collection
495 }
496
497 const createResolvedMutationResult = () => {
498 return {

Callers 2

buildSharedStateHandleFunction · 0.85
toArrayFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected