Class: Bio::Ucsc::Ci2::DBConnection

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

Class Method Summary collapse

Class Method Details

.connectObject



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

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

.defaultObject



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

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