function getAll<T>(objectStore): Promise<T[]>;Defined in: packages/indexeddb-db-collection/src/wrapper.ts:341
Retrieves all items from an object store.
Uses the native getAll() method for efficient bulk retrieval.
T
The type of items in the object store
IDBObjectStore
The IDBObjectStore to read from
Promise<T[]>
A promise that resolves to an array of all items in the store
await executeTransaction(db, 'todos', 'readonly', async (tx, stores) => {
const allTodos = await getAll<Todo>(stores.todos)
console.log('All todos:', allTodos)
})