![]() |
![]()
| ![]() |
![]()
NAMEToader::Entry::Cache - Misc helper methods for entries. VERSIONVersion 0.0.0 METHODSnewThis initializes this object. On argument is required and it is a Toader object. my $foo = Toader::Entry::Cache->new( $toader ); if($foo->error){ warn('error: '.$foo->error.":".$foo->errorString); } cachefileThis returns the SQLite file that contains the cache for this directory. my $cacheFile=$foo->cachefile; if($foo->error){ warn('error: '.$foo->error.":".$foo->errorString); } connectThis connect to the SQLite database containing the cache and returns the database handler. my $dbh=$foo->connect; if($foo->error){ warn('error: '.$foo->error.":".$foo->errorString); } deleteEntryDeletes a specified entry from the cache. One argument is taken and the is the name of the entry. $foo->deleteEntry( $entryName ); if($foo->error){ warn('error: '.$foo->error.":".$foo->errorString); } disconnectThis disconnect from the SQLite database containing the cache and returns the database handler. my $dbh=$foo->connect; if($foo->error){ warn('error: '.$foo->error.":".$foo->errorString); } initThis checks if the cache needs initialized for the directory. If it does need initialized it will do so. $foo->init if($foo->error){ warn('error: '.$foo->error.":".$foo->errorString); } reinitRe-initializes the SQLite database. This will connect to it, drop the tables, and then recreate the tables. $foo->reinit; if($foo->error){ warn('error: '.$foo->error.":".$foo->errorString); } setDirThis sets the directory to operate on. One argument is required. It is the directory to use. $foo->setDir($directory); if($foo->error){ warn('error: '.$foo->error.":".$foo->errorString); } updateAllUpdates the cache for all entries in that directory. $foo->updateAll; if ( $foo->error ){ warn( 'error:'.$foo->error.':'.$foo->errorString ); } updateEntryUpdates the cache for the passed entry. One argument is taken and that is the Toader::Entry object that the cache is being updated for. $foo->updateEntry( $entry ); if($foo->error){ warn('error: '.$foo->error.":".$foo->errorString); } ERROR CODES/Flags1, noToaderObjThe object supplied for the Toader object. 2, notAtoaderObjThe supplies object is not a Toader object. 3, manageNewErroredToader::Entry::Manage->new errored. 4, getVCSerroredFailed to get Toader::VCS object. 5, VCSusableErroredToader::VCS->usable errored. 6, noDirSpecifiedNothing was passed as a directory. 7, notAtoaderDirThe specified directory is not a Toader directory. 8, noDirSetNo dir has been set yet. 9, noEntrySpecifiedNo entry was specified to processes. This needs to be a Toader::Entry object. 10, notAtoaderEntryObjNot a Toader::Entry object. 11, DBIinitErroredFailed to initialize the SQLite database via DBI->connect. 12, DBIdoErrError with DBI->do. 13, manageSetDirErroredFailed when calling Toader::Entry::Manage->setDir. 14, manageListErroredFailed when calling Toader::Entry::Manage->list. 15, manageReadErroredFailed when calling Toader::Entry::Manage->read. 16, noEntryNameSpecifiedNo entryName was specified to processes. This id different from noEntrySpecified as noEntrySpecified requires a Toader::Entry object and this just requires a entry name. 17, underVCS erroredToader::VCS->underVCS errored. 18, VCSaddErroredToader::VCS->add errored. AUTHORZane C. Bowers-Hadley, "<vvelox at vvelox.net>" BUGSPlease report any bugs or feature requests to "bug-toader at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Toader>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. SUPPORTYou can find documentation for this module with the perldoc command. perldoc Toader::Entry::Cache You can also look for information at:
ACKNOWLEDGEMENTSLICENSE AND COPYRIGHTCopyright 2014 Zane C. Bowers-Hadley. This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License. See http://dev.perl.org/licenses/ for more information.
|