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

Interface QueryIndex

core/queryIndex.ts:31–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29export type IndexValueInput<T> = Thunk<T | T[]>;
30
31export interface QueryIndex<D, V, K extends IndexableKey<D & V>> {
32 find(value: IndexFindInput<D, V, K>): Entity<D, V>[];
33 update(entity: Entity<D, V>): void;
34 remove(entity: Entity<D, V>): void;
35}
36
37/**
38 * Will get existing value or create new one from observable map.

Callers 24

getContextValueFunction · 0.65
createEntityFromSchemaFunction · 0.65
getClassByIdFunction · 0.65
getClassAttributeByIdFunction · 0.65
getClassIdKeyFunction · 0.65
findEntityByNameFunction · 0.65
getIdKeyForEntityFunction · 0.65
updateFunction · 0.65
putFunction · 0.65
updateSelfFunction · 0.65
updateFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected