iBatis的Ruby版 RBatis RBatis是iBatis的Ruby版,安装方法:
./script/plugin install https://svn.apache.org/repos/asf/ibatis/trunk/rb/rbatis
示例代码:
class Product < RBatis::Base statement :select_one, :find do |productid| ["SELECT * FROM product WHERE productid = ?", productid] end statement :select, :find_by_category do |category| ["SELECT * FROM product WHERE category = ?", category] end......
Lafcadio Lafcadio 是Ruby语言的对象关系映射框架,目前支持 MySQL 数据库,将来将支持各种流行的数据库
安装方法:gem install lafcadio
示例代码:
require 'rubygems'require_gem 'lafcadio'Lafcadio::LafcadioConfig.set_values( 'dbuser' => 'test', 'dbpassword' => 'password', 'dbname' => 'test', 'dbhost' => 'localhost')require 'tutorial_setup'ten_years_ago = Date.today - (365 * 10)john = User.ne......
Rubernate 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 = ......
对象映射框架 Momomoto Momomoto 是一个 Ruby 语言为 PostgreSQL 的数据库-对象映射框架。支持主键、存储过程、表格元数据、试图等操作。...
对象关系映射工具, jRelationalFramework 一个开源的对象关系映射工具,可以帮助从业务逻辑中抽象出 SQL 和 JDBC 代码。它拥有一个 JRF “PersistentObject” 类的持久性对象子类,从而可以将很多常见的数据库编程任务自动化。...
Perl语言ORM Class::DBI Class::DBI 是使简单的数据库操作几乎不用编程,同时使困难的变得有可能。对很多简单的数据库应用来说,它使我们完全不用编 写SQL,另一方面它也不强迫你用很复杂的数据结构来表示一个复杂查询。如果你确实需要原始SQL的功能或表达能力,它也会适时的给你让路。
例子程序:
#!/usr/bin/perluse My::PhoneBill::Call;my $number = shift or die "Usage: $0 <number>";my @calls = My::PhoneBill::Call->search(number ......
JGrinder JGrinder是一个将Java对象映射到各种不同的持久化存储的框架,包括关系数据库、文件、内存等等。...
Bamboo.Prevalence Bamboo.Prevalence 旨在提供透明的对象持久化和同步的框架...
数据持久层框架 EasyDBO EasyDBO是一个非常适合中小型软件数据库开发的数据持久层框架,系统参考hibernate、JDO等,结合中小项目软件的开发实际,实现简单的对象-关系数据库映射。...
数据绑定工具 Castor Castor 项目为开源领域提供了数据(XML 和数据库)绑定功能。其原理跟 Sun 的 JAXB 很相似,并且向关系数据库表添加了增强的映射和绑定功能。
JavaDoc : http://www.castor.org/javadoc/overview-summary.html...
Perl语言ORM DBIx::Class DBIx::Class 是一个Perl语言的数据库对象映射框架...
Perl语言ORM Rose::DB::Object Rose::DB::Object 是一个Perl语言的数据库对象映射框架
示例代码:
$product = Product->new(id => 123, name => 'GameCube', status => 'active', start_date => '11/5/2001', end_date => '12/1/2007', category_id => 5); $product->s......
jPersist jPersist is an extremely powerful object-relational persistence API that is based on the Active-Record and Data-Mapper patterns. jPersist is mapless and has no need for XML or annotation based mapping (all mapping is automatic and dynamic).......
QLOR QLOR is a performant Object/Relational Mapping and persistence framework for Java. It's easy to use and deploy with other technologies....
Persist Persist is a Java ORM/DAO library designed for high performance, ease of use and integration....
对象映射框架 Lore ORM Lore ORM 是一个高度灵活的对象映射框架,提供可灵活、简单、功能强大的对象 创建、查询、更新和删除等操作接口。
安装方法: gem install lore
代码形如:
require 'lore/connection'logins = {:your_db_name => [ 'user', 'pass' ] }Lore.setup(:logins => logins)Lore::Context.enter:your_db_name# You can load your models now: require 'my_app/models/my_model.rb'# Set up caching, optional: Lore.enable_mmap......
pBeans pBeans is a Java persistence layer and an object/relational database mapping (ORM) framework. It is designed to be simple to use and automated....