[英]Insert data to sqlite from json
I'm new in Mobile programming and I want to find how to store data from json in sqlite the json file will be send from the server,so how can i get it and insert data to sqlite i'm using phonegap and jquerymobile and my application is hybrid. 我是移动编程的新手,我想找到如何在sqlite中存储来自json的数据,json文件将从服务器发送,所以如何获取它并将数据插入到sqlite中,我正在使用phonegap和jquerymobile,应用程序是混合的。 my json file:
我的json文件:
{
"flux": {
"typeflux": "virement",
"contenu": {
"cours": [
{
{
"-date": "02/01/2011",
"value": [
{
"-devise": "USD",
"-achat": "2.2477",
"-vente": "3.2477"
},
{
"-devise": "EUR",
"-achat": "2.2477",
"-vente": "3.2314"
}
]}
]}
}}
I do believe JayData is what you are looking for. 我相信JayData是您想要的。 It helps you to manage data in hybrid applications regarding webSql/sqLite data or online datasources - all with JavaScript.
它可以帮助您管理与webSql / sqLite数据或联机数据源有关的混合应用程序中的数据-所有这些都使用JavaScript。 There is also a getting started tutorial , that shows how to use sqLite with JayData in a phonegap application.
还有一个入门教程 ,显示了如何在phonegap应用程序中将sqLite与JayData结合使用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.