Class: Ensembl::DummyDBConnection
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Ensembl::DummyDBConnection
- Defined in:
- lib/bio-ensembl/db_connection.rb
Overview
Generic class to perform dynamic connections to the Ensembl database and retrieve database names
Class Method Summary collapse
Class Method Details
.connect(args) ⇒ Object
39 40 41 42 43 44 45 46 47 48 |
# File 'lib/bio-ensembl/db_connection.rb', line 39 def self.connect(args) self.establish_connection( :adapter => args[:adapter] ||= Ensembl::DB_ADAPTER, :host => args[:host] ||= Ensembl::DB_HOST, :username => args[:username] ||= Ensembl::DB_USERNAME, :password => args[:password] ||= Ensembl::DB_PASSWORD, :port => args[:port], :database => args[:database] ||= '' ) end |