Displaying 1 result from an estimated 1 matches for "sybdatasourc".
Did you mean:
sybdatasource
2009 Jan 13
2
Connect multiple DB in rails project using AR
...so...Please
give me some light.
all_servers = Server.find(:all)
all_servers.each do |s|
h = {:host => "localhost",
:adapter => "jdbc",
:dialect => "sybase",
:autocommit => false,
:driver => "com.sybase.jdbc3.jdbc.SybDataSource",
:url => "jdbc:sybase:Tds:#{s.host):#{s.port}/LOE_DB",
:username => "username",
:password => "password"}
# How to I write code to establish 40 connections using active record
here??
# class "Server.name" < Act...