今天要寫一個 cron script 要用到資料庫,因為已經被 Active Record 慣壞了,懶得用 SQL。所以就花點時間 Survey 怎麼再 Rails 之外使用 Active Record。簡單版1. require 相關的 lib require "rubygems" require_gem "activerecord"2. 建立 DB Connection ActiveRecord::Base.establish_connection( :adapter => "mysql", :username => "root", :host => "loc ...
- 08:11
- 浏览 (425)
- 评论 (0)
- 分类: activerecord
突然看到了這篇文章,差點沒興奮的大叫出來!!!I have done some extensive work on active record to allow for databases to be defined in terms of "connection pools" rather than simply one database. Most of the work was completed in connection_specification.rb and is done at this level to be compatible with any backend you ...
- 03:18
- 浏览 (461)
- 评论 (0)
- 分类: activerecord
- 浏览: 82537 次

- 详细资料
搜索本博客
最近加入圈子
最新评论
-
用 JRuby 來連接 Oracle
能不能具体点? 这个Config文件在那啊?
-- by thinhair -
Another Ruby IDE:Interl ...
就是希望少占资源。
-- by dearsuper -
AK47 與 M16
奇怪你怎么能上网,而我那个朋友说是不能接触到电脑。。。
-- by blackanger -
AK47 與 M16
楼主用的AK是正版的吗???呵呵咋一看题目我还以为你在研究CS,我有个朋友也在台 ...
-- by blackanger -
Peepcode Screencast
你知道付费的也是「還好沒花錢買」???
-- by s22






评论排行榜