Class: Ucsc::Hg18::DBConnection

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/ucsc/db_connection.rb

Overview

DESCRIPTION

The Ucsc::Hg18::DBConnection is the actual connection established with the UCSC mysql server.

Class Method Summary collapse

Class Method Details

.connectObject

DESCRIPTION

The Ucsc::Hg18::DBConnection#connect method makes the connection to the UCSC hg18 database.

USAGE

# Connect to the hg18
Ensembl::Core::DBConnection.connect

Arguments: none



27
28
29
30
31
32
33
34
35
# File 'lib/ucsc/db_connection.rb', line 27

def self.connect
establish_connection(
                    :adapter => DB_ADAPTER,
                    :host => DB_HOST,
                    :database => 'hg18',
                    :username => DB_USERNAME,
                    :password => DB_PASSWORD
                    )
end