Zahatski Aliaksandr > Objects-Collection > Objects::Collection::AutoSQLnotUnique

Download:
Objects-Collection-0.37.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01   Source  

NAME ^

 Objects::Collection::AutoSQLnotUnique - class for collections of data, stored in database.

SYNOPSIS ^

  use Objects::Collection::AutoSQL;
  my $metaobj = new Objects::Collection::AutoSQL::
      dbh => $dbh,         #database connect
      table => 'metadata', #table name
      field=> 'mid',       #key field (IDs)
      cut_key =>1,         #delete field mid from readed records, 
                           #or delete_key=>1
      sub_ref =>
              #callback for create objects for readed records
              sub { my $id = shift; new MyObject:: shift }

DESCRIPTION ^

Provide simply access to records, with not unique key field.

SEE ALSO ^

Objects::Collection::AutoSQL, Objects::Collection, README

AUTHOR ^

Zahatski Aliaksandr, <zag@cpan.org>

COPYRIGHT AND LICENSE ^

Copyright (C) 2005-2006 by Zahatski Aliaksandr

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.

syntax highlighting: