perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <rich...@ecos.de>
Subject Re: Per-table PrimKeys?
Date Thu, 12 Jun 2003 21:42:53 GMT


> I tried futzing with MetaData but couldn't figure out if this was
> possible.  I'd like to setup the initial information for my tables
> with different primary keys for some of the tables (similar to the
> way it's possible to override link values).  Is this possible?


Yes.

$db = DBIx::Database -> new (...) ;

$db -> TableAttr ('*', '!PrimKey', 'id') ; # default for all tables
$db -> TableAttr ('foo', '!PrimKey', 'bar') ; # different primkey for table
foo


Gerald



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message