Defined in: packages/db/src/types.ts:15
Interface for a collection-like object that provides the necessary methods for the change events system to work
T extends object = Record<string, unknown>
TKey extends string | number = string | number
compareOptions: StringCollationConfig;Defined in: packages/db/src/collection/index.ts:671
id: string;Defined in: packages/db/src/collection/index.ts:280
indexes: Map<number, BaseIndex<TKey>>;Defined in: packages/db/src/collection/index.ts:656
Pick.indexesentries(): IterableIterator<[TKey, WithVirtualProps<T, TKey>]>;Defined in: packages/db/src/collection/index.ts:547
Get all entries (virtual derived state)
IterableIterator<[TKey, WithVirtualProps<T, TKey>]>
Pick.entriesget(key):
| WithVirtualProps<T, TKey>
| undefined;Defined in: packages/db/src/collection/index.ts:507
Get the current value for a key (virtual derived state)
TKey
| WithVirtualProps<T, TKey> | undefined
Pick.gethas(key): boolean;Defined in: packages/db/src/collection/index.ts:514
Check if a key exists in the collection (virtual derived state)
TKey
boolean
Pick.has