从phonegap读取本地sqlite文件 [英] Reading a local sqlite file from phonegap

查看:127
本文介绍了从phonegap读取本地sqlite文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以通过 window.openDatabase 在phonegap / html5中创建一个sqlite数据库。我将有大量的数据,所以我想与该应用程序。

I can create a sqlite DB in phonegap/html5 via window.openDatabase. I am going to have a large amount of data, so I want to ship it with the app.

所以我可以存储一个sqlite数据库在某个地方,在应用程序需要在iOS和Android上工作)。我特别在 shortName.db 存储的时候调用

So can I store a sqlite DB somewhere, within the app (It needs to work on both iOS and Android). I particular where is the shortName.db stored when I call

var db = openDatabase (shortName,version,displayName,maxSize);

我可以预先填充这个sqlite文件。 (在phonegap环境中)

And can I pre-populate this sqlite file. (In the phonegap environment)

推荐答案

下面列出了iphone和android的一些解决方案:

Listed here are some solutions for iphone and android:

http://groups.google.com / group / phonegap / browse_thread / thread / 5e57a728dc66a2a1?pli = 1

这篇关于从phonegap读取本地sqlite文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆