NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
What about Mocking? (Score:1)
Re: (Score:2)
Two not-so-good solutions (Score:1)
1) Once per day, replicate the database to a dev copy. Run all tests on the dev database, destructively
2) Copy-on-write. I wrote a DBI facade which intercepted SQL prepares and, upon seeing an insert or update, copied the table to a new table and thereafter altered all SQL to replace the name of the old table with the new o
UID (Score:1)
Re: (Score:2)
--dry-runoption to all our scripts across the board, which works fine except for the databases that don't support transactions...Perhaps a DBI subclass ? (Score:1)
BTW: If you're using some DBI wrapper (DBIXC, CDBI, etc), you'll likely need to specify the subclass via the RootClass connect() attribute.