MCPcopy Create free account
hub / github.com/clientdb/clientdb / getPropIndex

Function getPropIndex

core/store.ts:254–264  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

252 };
253 },
254 getPropIndex(key) {
255 const existingIndex = propIndexMap.get(key);
256
257 if (existingIndex) return existingIndex;
258
259 const newIndex = createQueryFieldIndex(key, store, cleanup);
260
261 propIndexMap.set(key, newIndex);
262
263 return newIndex;
264 },
265 add(entity) {
266 const id = getEntityId(entity);
267

Callers

nothing calls this directly

Calls 1

createQueryFieldIndexFunction · 0.90

Tested by

no test coverage detected