开发者

how to manipulate Phonegap Web SQL Database

开发者 https://www.devze.com 2023-04-10 06:26 出处:网络
I\'m developing an app with PhoneGap and I found a 开发者_Python百科problem. I don\'t know and can\'t find the database file so I can manipulate it or check if it has the records and tables that I wan

I'm developing an app with PhoneGap and I found a 开发者_Python百科problem. I don't know and can't find the database file so I can manipulate it or check if it has the records and tables that I want.

Is there any app that can do that? I found that Safari and Chrome have a menu with that, but I can't find anything with that in my phone.


The only reliable way to get at the Web SQL database is through the browser itself. There are no good "generic" tools out there to manipulate the Web SQL database that I am aware of for an arbitrary site.

With a bookmarklet, however, it would not be too challenging to create an interface to manipulate the Web SQL database on an arbitrary site and provide more options than the built-in browser interfaces.


Try persistenceJS. It's a javascript plugin designed to make it easier to add, edit, remove tables and records in localDatabase. The documentation and the functionality are pretty good.

There's a lot of asynchronous stuff going on though, so be prepared to put a lot of your code into callbacks of callbacks of callbacks :)

0

精彩评论

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