Datamapper

Datamapper

Datamapper is an object-relational mapper library written in Ruby and commonly used with Merb. It was developed to address perceived shortcomings in Ruby on Rails' ActiveRecord library.

Some features of Datamapper:[1]

  • eager loading of child associations to avoid (N+1) queries
  • lazy loading of select properties, e.g., larger fields
  • query chaining, and not evaluating the query until absolutely necessary (using a lazy array implementation)
  • an API not too heavily oriented to SQL databases

Datamapper was designed to be a more abstract ORM, not strictly SQL, based on Martin Fowler's enterprise pattern.[2] As a result, people have built Datamapper adapters for other non-SQL databases, such as CouchDB[3], Apache Solr[4], and webservices such as Salesforce[5].

References

  1. ^ http://datamapper.org/why
  2. ^ Fowler, Martin; David Rice, Matthew Foemmel, Edward Hieatt, Robert Mee, and Randy Stafford (November 2002). Patterns of Enterprise Application Architecture. Addison-Wesley. ISBN 0-321-12742-0. 
  3. ^ http://github.com/kabari/dm-couchdb-adapter/tree/master
  4. ^ http://github.com/lritter/dm-solr-adapter/tree/master
  5. ^ http://github.com/halorgium/dm-salesforce/tree/master

External links



Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • Economy — For other uses, see Economy (disambiguation). Economics …   Wikipedia

  • Ruby on Rails — RoR Standard …   Deutsch Wikipedia

  • Motor de persistencia — Saltar a navegación, búsqueda En la actualidad existen distintos motores de persistencia. Estos motores facilitan el mapeo objeto relacional de atributos entre una base de datos relacional tradicional y suplen la funcionalidad de una base de… …   Wikipedia Español

  • Руби IDE — Ruby Семантика: мультипарадигмальный Тип исполнения: интерпретатор Появился в: 1995 г. Автор(ы): Юкихиро Мацумото Последняя версия: 1.9.1 …   Википедия

  • Рубин (язык программирования) — Ruby Семантика: мультипарадигмальный Тип исполнения: интерпретатор Появился в: 1995 г. Автор(ы): Юкихиро Мацумото Последняя версия: 1.9.1 …   Википедия

  • Язык программирования Рубин — Ruby Семантика: мультипарадигмальный Тип исполнения: интерпретатор Появился в: 1995 г. Автор(ы): Юкихиро Мацумото Последняя версия: 1.9.1 …   Википедия

  • Anexo:Motores de persistencia — Esta es una lista alfabética de los principales motores de mapeo objeto relacional, indicando si son libres o comerciales. Contenido 1 ColdFusion 2 Common Lisp 3 Java 4 JavaScript …   Wikipedia Español

  • List of object-relational mapping software — This is a list of well known object relational mapping software. This list is neither up to date nor all inclusive.Java*Carbonado, open source framework, backed by Berkeley DB or JDBC *Cayenne, apache, open source for java *Ebean, open source ORM …   Wikipedia

  • SQLAlchemy — is an open source SQL toolkit and object relational mapper for the Python programming language released under the MIT License.SQLAlchemy provides a full suite of well known enterprise level persistence patterns, designed for efficient and high… …   Wikipedia

  • Merb — Original author(s) Ezra Zygmuntowicz Developer(s) Yehuda Katz Stable release 1.1.2[1] / June 17, 2010; 16 months ago (2010 06 17) …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”