[Dbix-class] how to use one result pageck for many tables that have
same structural
刘强
liuqiang1981 at gmail.com
Fri Apr 2 08:35:49 GMT 2010
package MyDB::Schema::Result::Artist;
use base qw/DBIx::Class::Core/;
__PACKAGE__->table('artist');
__PACKAGE__->add_columns(qw/ artistid name /);
__PACKAGE__->set_primary_key('artistid');
for example we have talbes: artist1, artist2....artist10
do we need to create 10 package?
how to use one package,just change the table name dynamicly?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20100402/74a=
fe032/attachment.htm
More information about the DBIx-Class
mailing list