匿名用户2009年01月02日
55阅读

技术信息

授权协议
未知

作品详情

Lafcadio是Ruby语言的对象关系映射框架,目前支持MySQL数据库,将来将支持各种流行的数据库

安装方法:gemistalllafcadio

示例代码:

require'rubygems'require_gem'lafcadio'Lafcadio::LafcadioCofig.set_values('dbuser'=>'test','dbpassword'=>'password','dbame'=>'test','dbhost'=>'localhost')require'tutorial_setup'te_years_ago=Date.today-(365*10)joh=User.ew('birthday'=>te_years_ago,'email'=>'joh.doe@email.com','first_ame'=>'Joh','last_ame'=>'Doe','password'=>'my_password')joh.commit

功能介绍

Lafcadio 是Ruby语言的对象关系映射框架,目前支持 MySQL 数据库,将来将支持各种流行的数据库 安装方法:gem install lafcadio 示例代码: require ...

声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论