webOS 3.0 enyo sqlite 数据库存储和检索
我正在 enyo 中为 webOS 创建一个应用程序。我有一个 sqllite 数据库在浏览器中正常运行,但我如何找到该数据库的路径?
我怎样才能检索这个数据库?
是否可以获得整个数据库文件?
这是非常新的,所以我无法找到解决方案。
任何建议或帮助都会解决我的问题。
I am creating an app for webOS in enyo. I have an sqllite database running in the browser properly but how i can find the path of this database?
And how can i retrieve this database?
Is it possible to get whole DB file?
That is very new so I can't get the solution for it.
Any suggestion or help will solve my problem.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有一个非常好的 Enyo SQL lite 包装类,它是由 OneCrayon 从 Mojo 版本开发的...
https: //github.com/onecrayon/database-webos
这确实是您所需要的,如果您通读代码,就会发现一些关于如何使用它的非常好的注释!
There is a really good Enyo SQL lite wrapper class that has been developed from the Mojo version by OneCrayon...
https://github.com/onecrayon/database-webos
this is really all you will need, if you read through the code there are some very good notes on how to use it!
它不太清楚你想做什么。
如果您使用 webSQL 接口生成数据库,则可以使用相同的接口来访问它。
您无法真正直接访问 sqllite 文件,并且不清楚您为什么想要这样做。
或者您是说您已经从其他来源获得了 sqllite 数据库,并且希望能够通过 websql 界面在您的应用程序中打开它?目前这是不可能的。
Its not really clear what you're attempting to do.
If you use the webSQL interface to generate a db, you can use that same interface to access it.
You cannot really access the sqllite file directly, and its not clear why you would want to.
Or are you saying you already have an sqllite database from some other source and want to be able to open it up in your application via the websql interface? Thats not currently possible.