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