Subject: | feature request: setup handle from fixture file |
Date: | Thu, 10 Jan 2013 16:13:43 -0600 |
To: | bugs-dbd-mock [...] rt.cpan.org |
From: | Caleb Cushing <xenoterracide [...] gmail.com> |
it'd be cool if the DSN could be something like 'DBI:Mock:db=My::Fixture'
which would load My::Fixture from the lib. The fixture file could work
in a few ways, possibly the best is for it to have a standard named
subroutine that gets the $dbh before it is returned to the user, and
so you can add whatever you need to from this file, without changing
the way your program works at all, or needing to intercept the $dbh in
your prorgram after it is created but before it's used.
--
Caleb Cushing
http://xenoterracide.com