Bio-Das-ProServer
view release on metacpan or search on metacpan
lib/Bio/Das/ProServer/SourceAdaptor/Transport/dbi.pm view on Meta::CPAN
=head1 SYNOPSIS
=head1 DESCRIPTION
Transport helper class for database access, acting as a wrapper for DBI.
=head1 SUBROUTINES/METHODS
=head2 dbh - Database handle (mysqlish by default)
my $dbh = Bio::Das::ProServer::SourceAdaptor::Transport::dbi->dbh();
=head2 query - Execute a given query with given args
my $arrayref = $dbitransport->query(qq(SELECT ... WHERE x = ? AND y = ?),
$x,
$y);
=head2 prepare - DBI pass-through of 'prepare'
my $sth = $dbitransport->prepare($query);
=head2 disconnect - DBI pass-through of disconnect
$dbitransport->disconnect();
=head2 last_modified - machine time of last data change
Only knows how to do this for MySQL databases.
$dbitransport->last_modified();
This method is only implemented for mysql databases.
=head1 DIAGNOSTICS
=head1 CONFIGURATION AND ENVIRONMENT
[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|#
=head1 DEPENDENCIES
=over
=item L<Bio::Das::ProServer::SourceAdaptor::Transport::generic|Bio::Das::ProServer::SourceAdaptor::Transport::generic>
=item L<DBI|DBI>
=back
=head1 INCOMPATIBILITIES
=head1 BUGS AND LIMITATIONS
=head1 AUTHOR
Roger Pettett <rmp@sanger.ac.uk>.
=head1 LICENSE AND COPYRIGHT
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.
=cut
( run in 0.720 second using v1.01-cache-2.11-cpan-39bf76dae61 )