简体   繁体   English

Windows是否有任何node.js关系数据库绑定?

[英]Any node.js relational database bindings for Windows?

I'm trying to build a RESTful internal web server at work using node.js, where I'm currently restricted to using a Windows 2003 Server. 我正在尝试使用node.js在工作中构建RESTful内部Web服务器,目前我仅限于使用Windows 2003 Server。

I've hit a stumbling block with regards to database support however. 但是,在数据库支持方面,我遇到了绊脚石。 Are there any bindings currently available for reading and writing to sqlite, PostgreSQL or MySQL on Windows based machines? 当前是否有任何绑定可用于在基于Windows的计算机上读写sqlite,PostgreSQL或MySQL?

Mariano has mentioned Windows support in the future in these comments , but ideally I'd like to use something available just now as a proof of concept. Mariano在将来的评论中提到了Windows支持,但理想情况下,我想使用现在可用的功能作为概念证明。

I'm author of mysql-native . 我是mysql-native的作者。 Both official (felixge node-mysql ) and my driver has been successfully used under windows, I'm using and developing it under linux/windows 50/50% time . 官方(felixge node-mysql )和我的驱动程序都已在Windows下成功使用,我正在linux / windows 50/50%time下使用和开发它。 Feel free to contact me if you have any questions 如有任何疑问,请随时与我联系

Have you tried mysql-native? 您是否尝试过mysql-native? It's native (mysql) which means there are no other dependencies, so should run on any platform node supports. 它是本机(mysql),这意味着没有其他依赖关系,因此应在任何平台节点支持下运行。 Seems to be actively maintained also, and has some examples to show you how to use the library. 似乎也要积极维护,并有一些示例向您展示如何使用该库。 Link: https://github.com/sidorares/nodejs-mysql-native 链接: https//github.com/sidorares/nodejs-mysql-native

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM