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

  • 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
主站蜘蛛池模板: 莲花县| 灯塔市| 盐津县| 勐海县| 淳化县| 赣榆县| 巴中市| 仪征市| 玛曲县| 建始县| 锡林郭勒盟| 康保县| 讷河市| 苗栗市| 沙洋县| 阿勒泰市| 灵宝市| 乌苏市| 淳安县| 宣威市| 锡林郭勒盟| 崇左市| 韩城市| 简阳市| 临高县| 米易县| 高唐县| 酉阳| 台南县| 庆城县| 福海县| 金塔县| 弥勒县| 大足县| 黔江区| 湘乡市| 虹口区| 南和县| 龙州县| 太和县| 阿荣旗|