Lafcadio

程序名称:Lafcadio

授权协议: 未知

操作系统: 跨平台

开发语言: Ruby

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.new(  
  'birthday' => ten_years_ago,  
  'email' => '[email protected]',  
  'first_name' => 'John',  
  'last_name' => 'Doe',  
  'password' => 'my_password'  
)  
john.commit

Lafcadio 官网

http://lafcadio.rubyforge.org/

相关编程语言

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