Class: Bio::Ucsc::Fr2::DBConnection
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Bio::Ucsc::Fr2::DBConnection
- Includes:
- SafeAttributes
- Defined in:
- lib/bio-ucsc/fr2.rb
Class Method Summary collapse
Class Method Details
.connect ⇒ Object
49 50 51 52 53 54 55 |
# File 'lib/bio-ucsc/fr2.rb', line 49 def self.connect establish_connection({ :adapter => @@db_adapter, :host => @@db_host, :database => @@db_name, :username => @@db_username, :password => @@db_password, }) end |
.default ⇒ Object
42 43 44 45 46 47 |
# File 'lib/bio-ucsc/fr2.rb', line 42 def self.default @@db_adapter = 'mysql' @@db_host = 'genome-mysql.cse.ucsc.edu' @@db_username = 'genome' @@db_password = '' end |