DataMapper

程序名称:DataMapper

DataMapper 介绍

DataMapper 是 Ruby 的数据库映射框架,使用示例:

  @parent = Tree.find(:first, :conditions => ['name = ?', 'bob'])

  @parent.children.each do |child|  
    puts @parent.object_id == child.parent.object_id  
  end



  Zoo.first(:name => 'Galveston')

  # 'gt' means greater-than. We also do 'lt'.  
  Person.all(:age.gt => 30)

  # 'gte' means greather-than-or-equal-to. We also do 'lte'.  
  Person.all(:age.gte => 30)

  Person.all(:name.not => 'bob')

  # If the value of a pair is an Array, we do an IN-clause for you.  
  Person.all(:name.like => 'S%', :id => [1, 2, 3, 4, 5])

  # An alias for Zoo.find(11)  
  Zoo[11]

  # Does a NOT IN () clause for you.  
  Person.all(:name.not => ['bob','rick','steve'])

DataMapper 官网

http://www.datamapper.org/

相关编程语言

BlazeDS 是一个基于服务器的Java 远程控制(remoting...
OVal 是一个可扩展的Java对象数据验证框架,验证的规...
Volta 是一套开发工具,专为开发分布式、实时系统应...
OpenDDS 是一个开源的 C++ 实现的 对象管理组织 OMG...
JADE (Java Agent DEvelopment Framework) 是一个完...
FastMM ,在D2006和2007中已代替了原来的内存管理器。