开发者

How to find the location of database created using HTML5?

开发者 https://www.devze.com 2023-03-25 17:43 出处:网络
I am developing a playbook app, where I am creating multiple databases. Can I get the location of the file/db created. I n开发者_如何转开发eed to delete that Database, but I couldn\'t find a way to dr

I am developing a playbook app, where I am creating multiple databases. Can I get the location of the file/db created. I n开发者_如何转开发eed to delete that Database, but I couldn't find a way to drop it, so I am planning to delete the file that it is stored in.


You can't drop SQLite databases, as you have found (hence my suggestion to simply drop all the tables).

However, if you really must delete the physical db file, I think your best bet is to mount the PlayBook's file system, and then track the file down. This link may help in explaining the file system layout on the PlayBook:

http://supportforums.blackberry.com/t5/Tablet-OS-SDK-for-Adobe-AIR/BlackBerry-PlayBook-File-System-Layout/ta-p/773327


It depends on the OS and browser you are using, I have no experience with Playbook and its browser, but for example under Windows XP and using Firefox it's stored on:

C:\Documents and Settings\USERNAME\Application Data\Mozilla\Firefox\Profiles\YOURPROFILE

and in Chrome there are two possible places:

C:\Documents and Settings\USERNAME\Local Settings\Application Data\Google\Chrome\User Data\Default\

There you have LocalStorage and Databases folders.

Hope it helps

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号