Rubernate -


未知
跨平台
Ruby

软件简介

Rubernate 是一个基于关系数据库模型的面向对象数据映射框架。

示例代码:

persons = Rubernate.find_by_query "select p_.* from r_objects p_  
        left outer join r_params p_name on (p_.object_pk = p_name.object_pk)  
        left outer join r_params p_surname on (p_.object_pk = p_surname.object_pk)  
      where p_name.name = 'name' and  
          p_surname.name = 'surname' and  
          p_.object_class = 'Person' and  
          p_name.str_value = ? and  
          p_surname.str_value = ?", ['John', 'Smith']