流星JS和SQL Server [英] Meteor JS and SQL Server

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

问题描述

Meteor.js是否有与MongoDB进行交互的简单方法与SQL Server交互?例如,通过使用可在以下位置找到的Node.js MSSQL驱动程序: http ://www.microsoft.com/zh-cn/download/details.aspx?id = 29995 -但是理想情况下,这需要在linux中工作。

Is there a simple way for Meteor.js to interact with a SQL Server the same way it does with MongoDB? For example, by using the Node.js MSSQL driver found here: http://www.microsoft.com/en-us/download/details.aspx?id=29995 - however ideally this needs to work in linux.

我找到的最接近的是乏味-如何在Meteor中使用它或其他替代方法? / p>

The closest I have found was tedious - how can I use this, or another alternative, in Meteor?

推荐答案

您可能已经阅读了流星文档。您会发现它被赋予那里

You probably have read the meteor docs. You will find it is given there :


Meteor的当前版本支持MongoDB,流行的文档
数据库,本节中的示例使用MongoDB API。将来的
版本将包括对其他数据库的支持。

The current release of Meteor supports MongoDB, the popular document database, and the examples in this section use the MongoDB API. Future releases will include support for other databases.

因此,在那个将来的版本发布之前,您将没有本机支持其他数据库。最好的选择是使用允许您连接MS-SQL的程序包。您可以在此处检查列出的软件包或在此处。其中一些是:

So until 'that' future release, you won't have native support for other databases. Your best shot is to use packages that allow you to connect MS-SQL. You can check the packages listed here or search them here. Some of them are:


  1. https://npmjs.org/package/tedious

  2. https ://npmjs.org/package/msnodesql

  3. https: //npmjs.org/package/tds

  1. https://npmjs.org/package/tedious
  2. https://npmjs.org/package/msnodesql
  3. https://npmjs.org/package/tds

最好使用流行且最近更新的版本。

Better use one that is popular and more recently updated.

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

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