[CDBI] using different DSNs for reads/writes

Bill Moseley moseley at hank.org
Thu Dec 20 05:35:24 GMT 2007


On Wed, Dec 19, 2007 at 08:50:31PM -0500, Brian Duggan wrote:
> 
> sub db_Main {
>     my $class  = shift;
>     return $class->useWriteDBH ? $class->db_Write(@_) : $class->db_Read(@_);
> }

I wonder if would be possible to determine read or write by looking up
the call stack.

-- 
Bill Moseley
moseley at hank.org




More information about the ClassDBI mailing list