Bio::Das::ProServer::SourceHydra::sql - A database-backed implementation of B::D::P::SourceHydra


Bio-Das-ProServer documentation  | view source Contained in the Bio-Das-ProServer distribution.

Index


NAME

Top

Bio::Das::ProServer::SourceHydra::sql - A database-backed implementation of B::D::P::SourceHydra

VERSION

Top

$Revision: 506 $

AUTHOR

Top

Andy Jenkinson <andy.jenkinson@ebi.ac.uk>.

LICENSE AND COPYRIGHT

Top

DESCRIPTION

Top

Extension of the 'dbi' hydra to allow the use of custom SQL queries to determine the available source names.

SYNOPSIS

Top

  my $sqlHydra = Bio::Das::ProServer::SourceHydra::sql->new( ... );
  my @sources  = $dbiHydra->sources();

SUBROUTINES/METHODS

Top

sources : DBI sources

  Runs a preconfigured SQL statement, with the first column of each row of the
  results being the name of a DAS source.

  my @sources = $sqlhydra->sources();

  The SQL query comes from $self->config->{'query'};

  This routine caches results for $CACHE_TIMEOUT seconds.

DIAGNOSTICS

Top

Run ProServer with the -debug flag.

CONFIGURATION AND ENVIRONMENT

Top

  [mysimplehydra]
  adaptor   = simpledb           # SourceAdaptor to clone
  hydra     = sql                # Hydra implementation to use
  transport = dbi
  query     = select sourcename from meta_table
  dbname    = proserver
  dbhost    = mysql.example.com
  dbuser    = proserverro
  dbpass    = topsecret

DEPENDENCIES

Top

Bio::Das::ProServer::SourceHydra::dbi

INCOMPATIBILITIES

Top

BUGS AND LIMITATIONS

Top


Bio-Das-ProServer documentation  | view source Contained in the Bio-Das-ProServer distribution.