[CDBI] How can you temporarily turn off all triggers for a class?

Tatsuhiko Miyagawa miyagawa at gmail.com
Tue Jan 31 20:08:41 GMT 2006


I've been pondering to add a support of this to Class::Trigger (the
mixin class of CDBI for triggers), but I'd say mst's hack is nice.

On 1/31/06, Peter Speltz <peterspeltz at gmail.com> wrote:
> I want to render all the triggers in a class ineffective for the
> duration of a sub routine.  Anyone have a good idiom for this? In the
> data migration script, the triggers are getting in the way (creating
> things that already exist and need to be migrated and such).
>
>
> thanks.
>
>
> pjs
>
> _______________________________________________
> ClassDBI mailing list
> ClassDBI at lists.digitalcraftsmen.net
> http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi
>


--
Tatsuhiko Miyagawa




More information about the ClassDBI mailing list