Data::Library::ManyPerFile - multiple-queries-per-file support class for Data
Provides repository service to Data. This package supports SQL in template files, where each file contains one or more query blocks.
Format of queries in a template file is as follows:
queryname1:
[One or more SQL statements]
;;
Query name must start at beginning of line and end with a colon. Terminate is a pair of semicolons on a line by itself.
When searching through the repository for a matching tag, the first match will be used. Conflicts are not detected.
ManyPerFile recognizes when a query file is changed, and will instruct Data to reload the query from the file.
my $library = new Data::Library::ManyPerFile ({ name => "value" ... });
Supported Library::ManyPerFile parameters:
LIB Search path for SQL files. Defaults to [ "sql" ] EXTENSION Filename extension for SQL files. Defaults to ".sql"
$library->cache($tag, $data);
Caches statement handles for later fetching via lookup().
my @array = $library->toc();
Search through the library and return a list of all available entries. Does not import any of the items.
$library->reset;
Erase all entries from the cache.
Jason W. May <jmay@pobox.com>
Copyright (C) 2001 Jason W. May. All rights reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
2 POD Errors
The following errors were encountered while parsing the POD:
'=item' outside of any '=over'
You forgot a '=back' before '=head1'
To install Data::Library, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Library
CPAN shell
perl -MCPAN -e shell install Data::Library
For more information on module installation, please visit the detailed CPAN module installation guide.