On Fri, May 14, 2004 at 09:35:32PM -0700, Jonathan Leffler wrote:
> crowja wrote:
> 
> >Is there a dummy driver for DBI that basically does
> >nothing? Maybe a set of stubs so I could do something
> >like this:
> >
> > use DBI;
> >
> > my $dbh = DBI->connect("dbi:null", "", "");
> > my $sth = $dbh->prepare("SELECT * FROM mytab WHERE id = ?");
> > $sth->execute(3141);
> > while (my @vals = $sth->fetchrow_array()) {
> >   ...
> > }
> >
> >but nothing would really happen; simply the resolution of
> >the methods would be satisfied.
> 
> DBD::Example, DBD::Sponge?  Both distributed with DBI itself.

There's also DBD::DBM in the DBI distribution.

Or perhaps DBD::Mock would be a good fit for what you're after.

Tim.

Reply via email to