JavaScript sqlite [英] JavaScript sqlite

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

问题描述

从JavaScript访问和操作sqlite数据库的最佳建议。

Best recommendations for accessing and manipulation of sqlite databases from JavaScript.

推荐答案

好吧,如果您正在使用客户端JavaScript ,我认为你运气不好...浏览器倾向于沙盒化JavaScript环境,因此你无法访问任何一般容量的机器,如访问数据库。

Well, if you are working on client side JavaScript, I think you will be out of luck... browsers tend to sandbox the JavaScript environment so you don't have access to the machine in any kind of general capacity like accessing a database.

如果你在谈论从客户端访问的服务器端的SQLite数据库,你可以设置一个AJAX解决方案来调用一些服务器端代码来访问它。

If you are talking about an SQLite DB on the server end accessed from the client end, you could set up an AJAX solution that invokes some server side code to access it.

如果您正在谈论Rhino或其他服务器端JavaScript,您应该查看宿主语言对SQLite的API访问(例如Rhino的JDBC)。

If you are talking about Rhino or some other server side JavaScript, you should look into the host language's API access into SQLite (such as the JDBC for Rhino).

或许澄清一下你的问题......?

Perhaps clarify your question a bit more...?

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

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