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