Re: Laziness

[prev] [thread] [next] [Date index for 2004/07/15]

From: Tim Bunce
Subject: Re: Laziness
Date: 21:10 on 15 Jul 2004
On Thu, Jul 15, 2004 at 09:39:02PM +0200, johanl@xxxxxxxxx.xxx wrote:
> At 15:51 2004-07-15, Tim Bunce wrote:
>  >   (where rows is the return value from the DBI execute() method).
>  >
>  >    The trigger code can modify the discard_columns array to affect
>  >    which columns are discarded.
> 
> Ah, I didn't understand the meaning of "discarding columns" and what it is
> for. Thanks!
> 
> So, if I never want to re-select any columns, this would work?
> 
> Class->add_trigger(after_update => sub {
>     my ($self, %args) = @_;
>     @{$args{discard_columns}} = ();
> });

Looks reasonable.

> If this is considered a normal idiom, I'll add it to the Wiki cookbook page.

With caveats, please. (In other words don't present it as a "good thing for everyone".)

Tim.

Laziness
Johan Lindstrom 19:03 on 12 Jul 2004

Re: Laziness
Tony Bowden 20:43 on 13 Jul 2004

Re: Laziness
01:54 on 14 Jul 2004

Re: Laziness
Tony Bowden 08:23 on 14 Jul 2004

Re: Laziness
11:36 on 15 Jul 2004

Re: Laziness
Tim Bunce 13:51 on 15 Jul 2004

Re: Laziness
19:39 on 15 Jul 2004

Re: Laziness
Tim Bunce 21:10 on 15 Jul 2004

Generated at 11:34 on 01 Dec 2004 by mariachi v0.52