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


Objects-Collection documentation  | view source Contained in the Objects-Collection distribution.

Index


NAME

Top

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

SYNOPSIS

Top

  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

Top

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

SEE ALSO

Top

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

AUTHOR

Top

Zahatski Aliaksandr, <zag@cpan.org>

COPYRIGHT AND LICENSE

Top


Objects-Collection documentation  | view source Contained in the Objects-Collection distribution.