Re: [CDBI] using different DSNs for reads/writes
Bill Moseley <[email protected]> Wed, 19 Dec 2007 21:35:24 -0800
| Newsgroups | gmane.comp.lang.perl.modules.class-dbi |
|---|---|
| Message-ID | <[email protected]> |
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
[email protected]