sql-server – Meteor JS和SQL Server

Meteor.js是否有一种简单的方式与sql Server的交互方式与MongoDB相同?例如,通过使用这里找到的Node.js MSsql驱动程序: http://www.microsoft.com/en-us/download/details.aspx?id=29995 – 但是理想情况下,这需要在linux中工作.

我找到的最接近的是tedious – 我如何在Meteor中使用这个或另一个选择?

解决方法

你可能已经读过流星文件了.你会发现它是 there

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的软件包.您可以检查列出的包装here搜索它们here.其中一些是:

> https://npmjs.org/package/tedious
> https://npmjs.org/package/msnodesql
> https://npmjs.org/package/tds

更好地使用一个流行的,最近更新的.

相关文章

SELECT a.*,b.dp_name,c.pa_name,fm_name=(CASE WHEN a.fm_n...
if not exists(select name from syscolumns where name=&am...
select a.*,pano=a.pa_no,b.pa_name,f.dp_name,e.fw_state_n...
要在 SQL Server 2019 中设置定时自动重启,可以使用 Window...
您收到的错误消息表明数据库 'EastRiver' 的...
首先我需要查询出需要使用SQL Server Profiler跟踪的数据库标...