IndexedDB查看所有数据库和对象存储

编程入门 行业动态 更新时间:2024-10-23 22:35:54
本文介绍了IndexedDB查看所有数据库和对象存储的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在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方法.您可能可以使用 IE10中的选项"对话框.

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 Listing the stores inside a database is defined in the standard using the objectStoreNames method of an IDBDatabase instance.

更多推荐

IndexedDB查看所有数据库和对象存储

本文发布于:2023-10-29 03:34:34,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1538605.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:对象   数据库   IndexedDB

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!