IndexedDB🧪
✅️️ Methods
🔨IndexedDB.clearObjectStore
清除对象存储中的所有条目。
EN
Clears all entries from an object store.
| 参数 | 必填 | 标记 | 类型 | 描述 | 原文 |
|---|---|---|---|---|---|
| securityOrigin | string | 至少且最多必须指定 securityOrigin、storageKey 或 storageBucket 中的一个。安全来源。 | ENAt least and at most one of securityOrigin, storageKey, or storageBucket must be specified. Security origin. | ||
| storageKey | string | 存储键。 | ENStorage key. | ||
| storageBucket | Storage.StorageBucket | 存储桶。如果未指定,则使用默认桶。 | ENStorage bucket. If not specified, it uses the default bucket. | ||
| databaseName | ✔️ | string | 数据库名称。 | ENDatabase name. | |
| objectStoreName | ✔️ | string | 对象存储名称。 | ENObject store name. |
🔨IndexedDB.deleteDatabase
删除一个数据库。
EN
Deletes a database.
| 参数 | 必填 | 标记 | 类型 | 描述 | 原文 |
|---|---|---|---|---|---|
| securityOrigin | string | 至少且最多必须指定 securityOrigin、storageKey 或 storageBucket 中的一个。安全来源。 | ENAt least and at most one of securityOrigin, storageKey, or storageBucket must be specified. Security origin. | ||
| storageKey | string | 存储键。 | ENStorage key. | ||
| storageBucket | Storage.StorageBucket | 存储桶。如果未指定,则使用默认桶。 | ENStorage bucket. If not specified, it uses the default bucket. | ||
| databaseName | ✔️ | string | 数据库名称。 | ENDatabase name. |