Defined in: packages/indexeddb-db-collection/src/indexeddb.ts:209
Utility functions exposed on collection.utils
TItem extends object = Record<string, unknown>
TInsertInput extends object = TItem
[key: string]: anyacceptMutations: (transaction) => Promise<void>;Defined in: packages/indexeddb-db-collection/src/indexeddb.ts:227
Accepts mutations from a manual transaction and persists to IndexedDB
PendingMutation<Record<string, unknown>, OperationType, Collection<Record<string, unknown>, any, any, any, any>>[]
Promise<void>
clearObjectStore: () => Promise<void>;Defined in: packages/indexeddb-db-collection/src/indexeddb.ts:217
Removes all data from the object store Does NOT delete the database itself
Promise<void>
exportData: () => Promise<TItem[]>;Defined in: packages/indexeddb-db-collection/src/indexeddb.ts:235
Exports all data from the object store as an array Useful for backup/debugging
Promise<TItem[]>
getDatabaseInfo: () => Promise<DatabaseInfo>;Defined in: packages/indexeddb-db-collection/src/indexeddb.ts:222
Returns database information for debugging
Promise<DatabaseInfo>
importData: (items) => Promise<void>;Defined in: packages/indexeddb-db-collection/src/indexeddb.ts:241
Validates input rows and atomically replaces the object store. Failure preserves the previous rows and versions.
TInsertInput[]
Promise<void>