Re: DBD::Mock proposal, comments welcome
Mark Morgan <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.dbi.sybase.devel |
|---|---|
| Message-ID | <[email protected]> |
On 7 September 2010 20:52, Tim Bunce <[email protected]> wrote: > > Assuming you go with this approach (did I mention it was highly > recommended :) then your logic would live in a Gofer transport class > like DBI::Gofer::Transport::TotalCache. > > You'd select it using something like: > > DBI_AUTOPROXY="dbi:Gofer:transport=TotalCache;file=foo;mode=record" > > Tim. > Cheers for that, Tim. I had a brief look at Gofer earlier last week, but abandoned it when realized it had no transaction support (one of the requirements for my current need). I'll have a look at this again. It does seem custom-made for this type of problem. It was the Gofer slideshare that actually inspired this idea; I (rightfully) disgusted one of my current colleagues with the idea of using DBD::Gofer with HTTP transport and wrapping that with LWP::UA::Mockable. ;) Mark.