IndexedDB查看所有数据库和对象存储 [英] IndexedDB view all Databases and Object Stores
问题描述
我正在Windows 8应用程序中使用IndexedDB,而我对这两者都是新手.我已经能够成功创建,读取,更新,删除对象存储中的对象,并创建了几个数据库和一些对象存储.我的问题是如何列出所有对象存储和数据库?我创建了一些不需要的伪造的伪造的东西,我想稍微整理一下,但是我不记得它们的名字.也许这是保留肛门的功能,但似乎应该可以列出所有数据库和存储.谢谢!
I'm using IndexedDB in a Windows 8 app and I'm very new to both. I've been able to successfully create, read, update, delete objects from object stores, and have created a couple databases and a few object stores. My question is how can I list all of my object stores and databases? I create a few bogus ones that are not needed and I would like to clean things up a bit, but I can't remember what they are named. Maybe this is anal retentive, but it seems like it should be possible to list all databases and stores. Thanks!
推荐答案
当前无法枚举中的现有数据库标准. Windows 8应用程序使用IE,它不提供非标准的webkitGetDatabaseNames
方法.您可能可以使用.
There is currently no way of enumerating the existing databases in the standard. Windows 8 apps use IE, which does not provide the non-standard webkitGetDatabaseNames
method. You might be able to clear the databases using the options dialog in IE10.
使用 objectStoreNames IDBDatabase 实例的方法.
Listing the stores inside a database is defined in the standard using the objectStoreNames method of an IDBDatabase instance.
这篇关于IndexedDB查看所有数据库和对象存储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!