本页还没有译文
本页 16 段还没译成한국어,下面显示的是英文原文。getAll
还没翻译译自英文(tanstack.com)本页 16 段都还没译
function getAll<T>(objectStore): Promise<T[]>;Defined in: packages/db/src/indexed-db-wrapper.ts:370
Retrieves all items from an object store.
Uses the native getAll() method for efficient bulk retrieval.
Type Parameters
T
T
The type of items in the object store
Parameters
objectStore
IDBObjectStore
The IDBObjectStore to read from
Returns
Promise<T[]>
A promise that resolves to an array of all items in the store
Example
await executeTransaction(db, 'todos', 'readonly', async (tx, stores) => {
const allTodos = await getAll<Todo>(stores.todos)
console.log('All todos:', allTodos)
})AI 翻译查看英文原文