encyclopegia.org

DataMapper

DataMapper is an object-relational mapper library written in Ruby that follows the active record pattern even though the name implies it follows the data mapper pattern. While DataMapper 1 may not have achieved total decoupling between object and database suggested by the data mapper pattern, it appears DataMapper 2 intended to change this (a la Virtus, a library adapted from DataMapper). The DataMapper 2 project was renamed before launch and was released as Ruby Object Mapper (ROM) in August 2013. Some features of DataMapper: * 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. As a result, DataMapper adapters have been built for other non-SQL databases, such as CouchDB, Apache Solr, and webservices such as Salesforce.com.

DataMapper is an object-relational mapper library written in Ruby that follows the active record pattern even though the name implies it follows the data mapper pattern. While DataMapper 1 may not have achieved total decoupling between object and database suggested by the data mapper pattern, it appears DataMapper 2 intended to change this (a la Virtus, a library adapted from DataMapper). The DataMapper 2 project was renamed before launch and was released as Ruby Object Mapper (ROM) in August 2013. Some features of DataMapper: 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. As a result, DataMapper adapters have been built for other non-SQL databases, such as CouchDB, Apache Solr, and webservices such as Salesforce.com. ==References== ==External links== DataMapper homepage Ruby Object Mapper (ROM) homepage cs:Data Mapper

References

No reference rows published for this article.

Cite this article

MLA

"DataMapper." encyclopegia.org, 2025, https://encyclopegia.org/wiki/datamapper. Accessed 24 November 2026.

Chicago

"DataMapper." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/datamapper.

APA

encyclopegia.org. (2025). DataMapper. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/datamapper

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Claims

PredicateValueSource
release date2013Wikipedia

Related articles

Yallourn railway line

enwiki · references available

Kenneth Shearwood

enwiki · references available

20 Below

enwiki · references available

Jacki-O

enwiki · references available

Yakubu Abubakar Akilu

enwiki · references available

David Steicke

enwiki · references available

Stadthausbrücke station

enwiki · references available

Gary Pilgrim

enwiki · references available

Brüno

enwiki · references available

Aleksandar Živković (footballer, born 1912)

enwiki · references available

Joe Garden

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1326617170 · 0.5 · snapshot enwiki-001326617170

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.