Matt S Trout dbix-class at trout.me.uk
Thu Nov 10 19:43:30 GMT 2005

On Thu, Nov 10, 2005 at 07:20:15PM +0000, Steven Mackenzie wrote:
> Matt S Trout wrote:
> > (oh, and if you want to be unique by record, why not just use the LOI key
> > making mechanism ...)
> I like the sound of "just" -- what's LOI key though? ;-)


Ah, looks like it didn't become a first-class method until post-0.96. Try

my @pri = map { defined $_ ? $_ : '' } $obj->get($obj->primary_columns);
my $unique_row_key = join('|', $obj->table, @pri);

or something along those lines ...

     Matt S Trout       Specialists in Perl consulting, web development, and
  Technical Director    UNIX/Linux systems architecture and automation. Mail
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

 + Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +

More information about the ClassDBI mailing list