Bio::Das::ProServer::SourceHydra::dbi - 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::dbi - A database-backed implementation of B::D::P::SourceHydra

VERSION

Top

$Revision: 548 $

AUTHOR

Top

Roger Pettett <rmp@sanger.ac.uk>.

LICENSE AND COPYRIGHT

Top

DESCRIPTION

Top

SYNOPSIS

Top

  my $dbiHydra = Bio::Das::ProServer::SourceHydra::dbi->new();

SUBROUTINES/METHODS

Top

sources : DBI sources

  Effectively returns the results of a SHOW TABLES LIKE '$basename%'
  query. In Oracle I guess this would need changing to table_name from
  all_tables where like '$basename%' or something.

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

  $basename comes from $self->config->{'basename'};

  This routine caches results for $CACHE_TIMEOUT as show tables can be
  slow for a few thousand sources.

last_modified : machine time of last data change

  Gets the most recent update time for any of the hydra's tables.
  Only knows how to do this for MySQL databases.

  my $unixtime = $dbihydra->last_modified();

DIAGNOSTICS

Top

Run ProServer with the -debug flag.

CONFIGURATION AND ENVIRONMENT

Top

  [mysimplehydra]
  adaptor   = simpledb           # SourceAdaptor to clone
  hydra     = dbi                # Hydra implementation to use
  transport = dbi
  basename  = hydra              # dbi: basename for db tables containing servable data
  dbname    = proserver
  dbhost    = mysql.example.com
  dbuser    = proserverro
  dbpass    = topsecret

DEPENDENCIES

Top

Bio::Das::ProServer::SourceHydra

INCOMPATIBILITIES

Top

BUGS AND LIMITATIONS

Top

The last_modified method only works for MySQL databases.


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