[英]Windows Store App Javascript/HTML5 connect to Database
I have been creating a HTML5/Javascript system using Visual Studio 2013 (Blank App) now I want to use some database, I have two choice, first is to use my online MySQL database that is hosted, and second is to use a local database that is installed in my computer. 我一直在使用Visual Studio 2013(Blank App)创建一个HTML5 / Javascript系统,现在我想使用一些数据库,我有两个选择,第一个是使用我托管的在线MySQL数据库,第二个是使用本地数据库安装在我的电脑上。
But the problems are 但问题是
1.) I want to know what kind of database I should be using in this Windows Store App, because what I want is a database compatible/portable with Windows 8 Tablets. 1.)我想知道我应该在这个Windows应用商店应用中使用什么类型的数据库 ,因为我想要的是与Windows 8平板电脑兼容/可移植的数据库。
2.) I don't know how can I add,edit, and delete a database using HTML5/Javascript since I know that javascript is not a script to do this algorithms. 2.)我不知道如何使用HTML5 / Javascript 添加,编辑和删除数据库,因为我知道javascript不是执行此算法的脚本。 If so is there any possible alternatives or rather plugins/libraries to do this database connecting?
如果有的话,是否有任何可能的替代方案或插件/库来进行此数据库连接?
3.) I have been wondering if XML is a possible choice for a portable database. 3.)我一直想知道XML是否是便携式数据库的可能选择。 I need some good tutorial that is working on Windows Store App.
我需要一些适用于Windows Store App的好教程。
Please help, and I need a sincere and best answers. 请帮助,我需要一个真诚和最好的答案。 Thanks.
谢谢。
you can use indexeddb,websql,sqlite. 你可以使用indexeddb,websql,sqlite。 sqlite is better and easy to use.following link helps to connect to database in html5/javascript apps.
sqlite更好,更容易使用。以下链接有助于连接到html5 / javascript应用程序中的数据库。
http://timheuer.com/blog/archive/2012/08/07/updated-how-to-using-sqlite-from-windows-store-apps.aspx http://timheuer.com/blog/archive/2012/08/07/updated-how-to-using-sqlite-from-windows-store-apps.aspx
database wrapper for html5/javascript app html5 / javascript应用程序的数据库包装器
https://github.com/doo/SQLite3-WinRT https://github.com/doo/SQLite3-WinRT
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.