Bio::Das::ProServer::SourceAdaptor::Transport::dbi - A DBI transport layer (actually customised for MySQL)
$Revision: 546 $
Transport helper class for database access, acting as a wrapper for DBI.
my $dbh = Bio::Das::ProServer::SourceAdaptor::Transport::dbi->dbh();
my $arrayref = $dbitransport->query(qq(SELECT ... WHERE x = ? AND y = ?), $x, $y);
my $sth = $dbitransport->prepare($query);
$dbitransport->disconnect();
Only knows how to do this for MySQL databases. $dbitransport->last_modified(); This method is only implemented for mysql databases.
[mysource] transport = dbi driver = dbdmodule (default: mysql) dbhost = myserver (default: localhost) dbport = myport (default: 3306) dbuser = me (default: test) dbpass = password dbname = mydb autodisconnect = yes|no|#
Roger Pettett <rmp@sanger.ac.uk>.
Copyright (c) 2007 The Sanger Institute
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See DISCLAIMER.txt for disclaimers of warranty.
To install Bio::Das::ProServer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bio::Das::ProServer
CPAN shell
perl -MCPAN -e shell install Bio::Das::ProServer
For more information on module installation, please visit the detailed CPAN module installation guide.