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

Interface EntityStorePublicMethods

core/store.ts:30–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28import { typedKeys } from "./utils/object";
29
30export interface EntityStorePublicMethods<Data, View> {
31 query: (
32 filter: FindInput<Data, View>,
33 sort?: EntityQuerySortFunction<Data, View>
34 ) => Collection<Data, View>;
35
36 sort: (sort: EntityQuerySortInput<Data, View>) => Collection<Data, View>;
37
38 findById(id: string): Entity<Data, View> | null;
39 remove(id: string): boolean;
40 update(id: string, data: Partial<Data>): EntityUpdatedEvent<Data, View>;
41 find(filter: FindInput<Data, View>): Entity<Data, View>[];
42 findFirst(filter: FindInput<Data, View>): Entity<Data, View> | null;
43
44 readonly all: Entity<Data, View>[];
45}
46
47export interface EntityStore<Data, View>
48 extends EntityStorePublicMethods<Data, View> {

Callers 11

removeFunction · 0.80
putFunction · 0.80
isRemovedFunction · 0.80
reapplyEntityChangeFunction · 0.80
misc.spec.tsFile · 0.80
ownerFunction · 0.80
removeEntityFromIndexesFunction · 0.65
removeFunction · 0.65
updateEntityIndexesFunction · 0.65
rollbackFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected