官术网_书友最值得收藏!

  • Learning Mongoid
  • Gautam Rege
  • 148字
  • 2021-07-21 18:03:26

Chapter 1. What's so Awesome about Mongoid?

The name MongoDB is derived from humongous. We use DataMappers to work with MongoDB. In Ruby, the most popular MongoDB mapper is Mongoid, pronounced mann-gyod. But is this the only mapper available? There also exists MongoMapper, MongoODM, and in the realm of open source there could well be many more!

So, what is so awesome about Mongoid? In a nutshell, its ability to gel with the Rails framework makes it very popular. For me, it is this adaptability to refactor and improve that makes Mongoid a very close ally of Rails.

In this chapter, we shall get a taste of the power of Mongoid. We shall see:

  • How Mongoid adheres to Rails ActiveModel and ActiveRelation syntax
  • Differences between Mongoid Version 2.x and 3.x
  • A brief introduction to Moped and Origin
  • Some differences between MongoMapper and Mongoid and their usage
主站蜘蛛池模板: 漾濞| 天全县| 禄劝| 合山市| 建瓯市| 体育| 襄垣县| 额济纳旗| 连城县| 红河县| 祥云县| 筠连县| 长岭县| 东至县| 马关县| 平江县| 开封县| 祁阳县| 丰顺县| 平舆县| 宾阳县| 化州市| 南雄市| 乌兰浩特市| 东城区| 庆阳市| 凭祥市| 富川| 禹州市| 察隅县| 玛多县| 南和县| 西城区| 石楼县| 乃东县| 蓬溪县| 满洲里市| 穆棱市| 宁国市| 望江县| 海兴县|