LCC::Documents::DBI - Document information stored in a database
use DBI; my $dbh = DBI->connect( ... ); my $sth = $dbh->prepare( "SELECT id,mtime... FROM table" ); $sth->execute;
use LCC; $lcc = LCC->new( | {method => value} );
$lcc->Documents( $sth, | {method => value} ); # figures out it's DBI $lcc->Documents( 'DBI', $sth, | {method => value} ); # forces DBI
The Documents object of the Perl support for LCC that should be used when document update information exists as a DBI statement handle. Do not create directly, but through the Documents method of the LCC object.
The statement handle is supposed to contain the following elements:
1 id of a document 2 mtime of that document 3 (optional) length of that document 4 (optional) md5 of that document 5 (optional) mimetype of that document 6 (optional) subtype of that document
There are no methods specific to this module. Also see the methods available in the LCC::Documents module.
Elizabeth Mattijsen, <liz@dijkmat.nl>.
Please report bugs to <perlbugs@dijkmat.nl>.
Copyright (c) 2002 Elizabeth Mattijsen <liz@dijkmat.nl>. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
http://lococa.sourceforge.net, the LCC.pm and the other LCC::xxx modules.