关于Meteor中的包最小/ mongo的困惑

时间:2016-01-08 21:35:41

标签: meteor

我在想,可能已经回答了,但我找不到任何东西。

minimongo / monog氛围包与Meteor中已经提供的内容之间有什么区别?

我在早期添加了它们,我想知道它们是否仍然需要。

谢谢,

1 个答案:

答案 0 :(得分:0)

minimongo是mongo的依赖,而mongo绝对是meteor包的一部分 是的,它是分发的一部分。

如果我运行meteor show minimongo,我得到:

meteor show minimongo                                                                                                                                   master 
Package: minimongo@1.0.10                     
Maintainers: mdg                              
Exports: LocalCollection, Minimongo           

`minimongo` is reimplementation of (almost) the entire MongoDB API, against an
in-memory JavaScript database. It is like a MongoDB emulator that runs inside
your web browser. You can insert data into it and search, sort, and update that
data. This is great if you like the MongoDB API (which you may already be using
on the server), need a way to store data on the client that you've fetched and
are using to render your interface, and want to use that familiar API.

Minimongo is used as a temporary data cache in the standard Meteor stack, to
learn more about mini-databases and what they can do, see [the project page on
www.meteor.com](https://www.meteor.com/mini-databases)

Recent versions:                              
  1.0.6   December 19th, 2014                 
  1.0.7   March 17th, 2015
  1.0.8   March 31st, 2015      installed
  1.0.9   September 21st, 2015  installed
  1.0.10  September 28th, 2015  installed

Older and pre-release versions of minimongo have been hidden. To see all 56 versions, run 'meteor show --show-all minimongo'.