Bio-Das-ProServer
view release on metacpan or search on metacpan
lib/Bio/Das/ProServer/SourceAdaptor/Transport/csv.pm view on Meta::CPAN
return $self->config->{filename} || 'default';
}
sub filename {
my $self = shift;
return File::Spec->catfile( $self->dbname(), $self->tablename() );
}
sub last_modified {
my $self = shift;
return stat( $self->filename() )->mtime;
}
1;
__END__
=head1 NAME
Bio::Das::ProServer::SourceAdaptor::Transport::csv - Comma-separated-values transport layer
=head1 VERSION
$Revision: 687 $
=head1 SYNOPSIS
=head1 DESCRIPTION
=head1 SUBROUTINES/METHODS
=head2 dbh - DBI:CSV handle
Overrides Transport::dbi
my $dbh = $csvtransport->dbh();
=head2 dbname - The CSV database name (directory path)
my $directory = $csvtransport->dbname();
=head2 tablename - The CSV table name (file name)
my $file = $csvtransport->tablename();
=head2 filename - The full CSV file path
my $filepath = $csvtransport->filename();
=head2 last_modified - machine time of last data change
$csvtransport->last_modified();
=head1 DIAGNOSTICS
=head1 CONFIGURATION AND ENVIRONMENT
=head1 DEPENDENCIES
=head1 INCOMPATIBILITIES
=head1 BUGS AND LIMITATIONS
=head1 AUTHOR
Jody Clements <jc3@sanger.ac.uk>
Andy Jenkinson <andy.jenkinson@ebi.ac.uk>
=head1 LICENSE AND COPYRIGHT
Copyright (c) 2005 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 1.464 second using v1.01-cache-2.11-cpan-39bf76dae61 )