Defined in: packages/db/src/types.ts:12
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;
compareOptions: StringCollationConfig;
Defined in: packages/db/src/collection/index.ts:516
id: string;
id: string;
Defined in: packages/db/src/collection/index.ts:210
indexes: Map<number, BaseIndex<TKey>>;
indexes: Map<number, BaseIndex<TKey>>;
Defined in: packages/db/src/collection/index.ts:501
Pick.indexes
Pick.indexes
entries(): IterableIterator<[TKey, T]>;
entries(): IterableIterator<[TKey, T]>;
Defined in: packages/db/src/collection/index.ts:425
Get all entries (virtual derived state)
IterableIterator<[TKey, T]>
Pick.entries
Pick.entries
get(key): T | undefined;
get(key): T | undefined;
Defined in: packages/db/src/collection/index.ts:390
Get the current value for a key (virtual derived state)
TKey
T | undefined
Pick.get
Pick.get
has(key): boolean;
has(key): boolean;
Defined in: packages/db/src/collection/index.ts:397
Check if a key exists in the collection (virtual derived state)
TKey
boolean
Pick.has
Pick.has
