[英]Is it possible to use an Sqlite database using NativeScript?
I wanted to build an application using NativeScript but i did not find if it's possible to use an sqlite database. 我想使用NativeScript构建应用程序,但是我没有发现是否可以使用sqlite数据库。 Thanks for answering.
谢谢回答。
I'm actually working on a sqlite wrapper (at least the Android side currently). 我实际上是在使用sqlite包装器(目前至少在Android方面)。 If you are interested in testing or using;
如果您对测试或使用感兴趣; the repository will be http://github.com/nathanaela/nativescript-sqlite when I publish it.
发布该存储库时,该存储库将为http://github.com/nathanaela/nativescript-sqlite 。 I hope to have it working soon.
我希望它能尽快工作。 I will need the apple side also;
我也需要苹果面。 so that module will be done once I have the android side working.
这样我就可以在Android端正常工作了。
Update: iOS and Android sides are fully working. 更新:iOS和Android方面都可以正常使用。 Docs on the github or npmjs.org site explain installation.
github或npmjs.org站点上的文档说明了安装。
Not for now, but I believe(at least hope) this will be added in the coming months. 目前暂不,但我相信(至少希望如此)将在未来几个月内添加。
https://github.com/NativeScript/cross-platform-modules/issues/191 https://github.com/NativeScript/cross-platform-modules/issues/141 https://github.com/NativeScript/cross-platform-modules/issues/191 https://github.com/NativeScript/cross-platform-modules/issues/141
In the meantime this might work - https://github.com/kripken/sql.js/ 同时,这可能有效-https://github.com/kripken/sql.js/
It's a copy of sqlite compiled to javascript with emscripten. 它是使用emscripten编译为javascript的sqlite的副本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.