简体   繁体   English

Javascript可以通过浏览器与远程服务器上的SQLite数据库进行交易吗?

[英]Can Javascript transact with a SQLite database on a remote server from a browser?

我想使用在远程浏览器上运行的Javascript与我服务器上的SQLite数据库进行交互(选择,插入,更新,删除)。

No. Not directly. 不,不是直接的。

The remote server would need to expose a "Web API" - which could be used/consumed by the browser JavaScript - that is run on the system with direct access to the SQLite database. 远程服务器需要公开一个“Web API” - 可以由浏览器JavaScript使用/使用 - 在系统上运行,可以直接访问 SQLite数据库。

There are some existing proxies that "allow direct data access" - you'll need to find or craft a suitable tool. 一些现有的代理人说,“允许直接访问数据” -你需要找到或制作一个合适的工具。 I recommend writing a Web API that doesn't expose SQL directly, but rather exposes the required operations independent of the actual back-end. 我建议编写一个直接公开SQL的Web API,而是公开所需的操作,而不是实际的后端。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 显示本地浏览器sqlite数据库的Javascript代码 - Javascript code to show local browser sqlite database 如何在浏览器中从JavaScript连接到SQL Server数据库? - How to connect to SQL Server database from JavaScript in the browser? 您可以从SQLite数据库返回带有JavaScript的SQLResultSet吗? - Can you return an SQLResultSet with JavaScript from an SQLite database? 跟踪像素是否可以从远程服务器执行javascript? - is tracking pixel can execute javascript from remote server? 从浏览器执行远程页面上的javascript函数 - Executing a javascript function on a remote page from browser 我可以从浏览器中运行的JavaScript直接连接到Redis服务器吗? - Can I connect directly to a Redis server from JavaScript running in a browser? 在Chrome浏览器的上下文中通过javascript进行Sqlite数据库位置 - Sqlite database location via javascript in the context of Chrome browser 如何使用 javascript 在远程 PC 的浏览器上播放来自机器的音频数据流? - How can I use javascript to play audio data streaming from a machine on browser of a remote PC? 将 SQLite (在服务器上)与纯 JavaScript (在浏览器中)一起使用有哪些不同的方法? - What are different ways to use SQLite (on the server) with pure JavaScript (in the browser)? 从JavaScript应用程序访问SQLite数据库? - Access SQLite database from JavaScript application?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM