NAME

XML::Template::DBI - A module for handling DBI sources.

SYNOPSIS

This module is used to handle access to DBI sources from XML::Template.

CONSTRUCTOR

my $dbi = XML::Template::Source::DBI->new ($sourcename)
  || die XML::Template::Source::DBI->error ();

Given the source name, the constructor method new retrieves source information from the XML::Template configuration file, creates a new DBI connection to a database, and returns an object with which you can make database queries.

PUBLIC METHODS

is_modified

my $is_modified = $source->is_modified ($cache_mtime, $table);

This method returns 1 if the table specified by the second parameter has changed since cache_mtime, the first parameter, or 0 otherwise. cache_mtime must be in unix time format.

AUTHOR

Jonathan Waxman <jowaxman@bbl.med.upenn.edu>

COPYRIGHT

Copyright (c) 2002-2003 Jonathan A. Waxman All rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.