javascript 最成熟的原生 Node.js MySQL 驱动程序?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10377722/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-26 09:39:53  来源:igfitidea点击:

Most mature native Node.js MySQL driver?

javascriptnode.jstowerjs

提问by ylluminate

I'm using MySQL for a Rails application and would like to be able to use this database for a Node.js app (in particular Tower.js). What is the most mature and/or performant driver available for this at the moment?

我将 MySQL 用于 Rails 应用程序,并希望能够将此数据库用于 Node.js 应用程序(特别是 Tower.js)。目前可用的最成熟和/或性能最好的驱动程序是什么?



Due to @ryan's excellent input below, I looked a bit more into Felix's node-mysqlThere is an absolutely EXCELLENTpodcast here that's I'd highly recommend listening to if you're interested in a slight history and general discussion as to the options and if node-mysqlpath may be right for you: http://ia600804.us.archive.org/3/items/NodeupEleven/NodeupEleven.mp3

由于@瑞安的下方优异的输入,我看着有点多到Felix的node-mysql有一个绝对优秀的播客这里的我会强烈建议听着,如果你有兴趣稍有历史和一般性讨论作为选项,如果node-mysql路径可能适合您:http: //ia600804.us.archive.org/3/items/NodeupEleven/NodeupEleven.mp3

After giving that roundtable discussion a quick listen up to that point, I'm pretty confident that this is the right path for about anyone to take right now. Further, the other discussions that go around are interesting as a general state of database support in Node.

在快速听取圆桌讨论之后,我非常有信心这是任何人现在都可以采取的正确道路。此外,周围的其他讨论作为 Node.js 中数据库支持的一般状态很有趣。

采纳答案by Ryan

Here is a linkto all the MySQL modules on the Node.js GitHub Wiki.

这是Node.js GitHub Wiki 上所有 MySQL 模块的链接

node-mysqlseems to be what you're looking for. It has by far the most watchers and development looks very active.

node-mysql似乎就是你要找的。迄今为止,它拥有最多的观察者,而且开发看起来非常活跃。

However, there is quite a selection on the Wiki page, you might want to have a look there first to see if there is something that better suits your needs.

但是,Wiki 页面上有很多选择,您可能想先看看那里是否有更适合您需求的内容。