Class: Bio::Ucsc::MonDom5::DBConnection

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
SafeAttributes
Defined in:
lib/bio-ucsc/mondom5.rb

Class Method Summary collapse

Class Method Details

.connectObject



51
52
53
54
55
56
57
# File 'lib/bio-ucsc/mondom5.rb', line 51

def self.connect
  establish_connection({ :adapter =>  @@db_adapter,
                         :host =>     @@db_host,
                         :database => @@db_name,
                         :username => @@db_username,
                         :password => @@db_password, })
end

.defaultObject



44
45
46
47
48
49
# File 'lib/bio-ucsc/mondom5.rb', line 44

def self.default
  @@db_adapter  = 'mysql2'
  @@db_host     = 'genome-mysql.cse.ucsc.edu'
  @@db_username = 'genome'
  @@db_password = ''
end