Class Ensembl::Core::ExternalDb
In: lib/ensembl/core/activerecord.rb
Parent: CoreDBConnection

DESCRIPTION

The ExternalDb class provides an interface to the external_db table. This table contains references to databases to which xrefs can point to

This class uses ActiveRecord to access data in the Ensembl database. See the general documentation of the Ensembl module for more information on what this means and what methods are available.

USAGE

 embl_db = ExternalDb.find_by_db_name('EMBL')
 puts embl_db.xrefs.length.to_s

Methods

Public Class methods

DESCRIPTION

The ExternalDb#find_all_by_display_label method returns all external databases that have this label. There should normally be no more than one. If no databases are found with this name, this method returns an empty array.

DESCRIPTION

The ExternalDb#find_by_display_label method returns a database that has this label. If no databases are found with this name, this method returns nil. empty array.

[Validate]