Rubernate是一个基于关系数据库模型的面向对象数据映射框架。
示例代码:
persons=Rubernate.find_by_query"selectp_.*fromr_objectsp_leftouterjoinr_paramsp_nameon(p_.object_pk=p_name.object_pk)leftouterjoinr_paramsp_surnameon(p_.object_pk=p_surname.object_pk)wherep_name.name='name'andp_surname.name='surname'andp_.object_class='Person'andp_name.str_value=?andp_surname.str_value=?",['John','Smith']
评论