in reply to Re: How to write test scripts depending on DBI
in thread How to write test scripts depending on DBI
Aargh! The first two answers I understand and know how to do. I was more looking for defences and criticisms of them as solutions.
If I understand DBD::Sponge correctly you cannot use a Sponge handle without knowing it is a Sponge. I thought the whole point of DBI is that once you have a DBI handle the perl code by and large does not need to know what the driver is (leaving aside issues of SQL dialect which obviously DBI can do nothing about.) As such I don't see why the Sponge module is in the DBD space let alone shipped with DBI. The same almost applies to DBD::Mock except that I can see some rather specialized applications for that. For example it might be useful to test a module that constructs SQL statements.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to write test scripts depending on DBI
by ikegami (Patriarch) on Oct 05, 2009 at 20:24 UTC | |
by SilasTheMonk (Chaplain) on Oct 05, 2009 at 20:36 UTC | |
by ikegami (Patriarch) on Oct 05, 2009 at 21:49 UTC | |
by SilasTheMonk (Chaplain) on Oct 05, 2009 at 22:41 UTC |