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
Pick\<[`Collection`](Collection.md)\<`T`, `TKey`\>, "get" | "has" | "entries" | "indexes" | "id" | "compareOptions">
T extends object = Record\<`string`, `unknown`\>
TKey extends string | number = string | number
compareOptions: StringCollationConfig;Defined in: packages/db/src/collection/index.ts:643
id: string;Defined in: packages/db/src/collection/index.ts:279
indexes: Map<number, BaseIndex<TKey>>;Defined in: packages/db/src/collection/index.ts:628
Pick.indexesentries(): IterableIterator<[TKey, WithVirtualProps<T, TKey>]>;Defined in: packages/db/src/collection/index.ts:519
Get all entries (virtual derived state)
IterableIterator\<\[`TKey`, [`WithVirtualProps`](../type-aliases/WithVirtualProps.md)\<`T`, `TKey`\>]>
Pick.entriesget(key):
| WithVirtualProps<T, TKey>
| undefined;Defined in: packages/db/src/collection/index.ts:479
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:486
Check if a key exists in the collection (virtual derived state)
TKey
boolean
Pick.has