DBI dummy driver?

From: Crowja (crow_at_ccgb.umn.edu)
Date: 05/13/04


To: dbi-users@perl.org
Date: Thu, 13 May 2004 11:33:38 -0500

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.

  - John



Relevant Pages

  • Re: DBI dummy driver?
    ... > crowja wrote: ... >>Is there a dummy driver for DBI that basically does ... Maybe a set of stubs so I could do something ... There's also DBD::DBM in the DBI distribution. ...
    (perl.dbi.users)
  • Re: DBI dummy driver?
    ... crowja wrote: ... Maybe a set of stubs so I could do something ... > use DBI; ... > but nothing would really happen; simply the resolution of ...
    (perl.dbi.users)
  • How to connect Perl-CGI with MS SQL Server
    ... SQL Server'. ... - user: john ... - DSN: domain.com.john ... I've got DBI installed cause this piece of code ...
    (microsoft.public.sqlserver.connect)
  • Re: DBI/DBD on 9i with Solaris 9
    ... In message, Morrison Davis writes: ... >dbi connects fine but if I change it to 9.2.0.5 I get the following: ... My WAG is you're confusing the ORACLE_HOME's and the Perl's ... John ...
    (perl.dbi.users)