- Tough to replace the database handle with a dynamic mock
- Why? DBI handles are tied objects
- Instead fool the DBI into loading our driver
- Then we can do whatever we want!
- Make it painless to use, just replace the DBI DSN
my $dbh = DBI->connect( 'DBI:Pg:dbname=footest',
'cwinters', 'dynagirl' );
my $dbh = DBI->connect( 'DBI:Mock:dbname=footest',
'cwinters', 'dynagirl' );