diff options
author | he <he@pkgsrc.org> | 2009-01-11 13:50:20 +0000 |
---|---|---|
committer | he <he@pkgsrc.org> | 2009-01-11 13:50:20 +0000 |
commit | 4a939ace67a315c4df101d4b8d0e53eb2eee14ea (patch) | |
tree | 939c1798a41a95c31242944237aeb02044a62245 /databases/p5-DBD-Mock/DESCR | |
parent | 6e4fcb38b13b85fd4e4730838f3ceccea32580b8 (diff) | |
download | pkgsrc-4a939ace67a315c4df101d4b8d0e53eb2eee14ea.tar.gz |
Import p5-DBD-Mock version 1.39.
Testing with databases can be tricky. If you are developing a system
married to a single database then you can make some assumptions
about your environment and ask the user to provide relevant connection
information. But if you need to test a framework that uses DBI,
particularly a framework that uses different types of persistence
schemes, then it may be more useful to simply verify what the
framework is trying to do -- ensure the right SQL is generated and
that the correct parameters are bound. DBD::Mock makes it easy to
just modify your configuration (presumably held outside your code)
and just use it instead of DBD::Foo (like DBD::Pg or DBD::mysql)
in your framework.
Diffstat (limited to 'databases/p5-DBD-Mock/DESCR')
-rw-r--r-- | databases/p5-DBD-Mock/DESCR | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/databases/p5-DBD-Mock/DESCR b/databases/p5-DBD-Mock/DESCR new file mode 100644 index 00000000000..0dc40d7dece --- /dev/null +++ b/databases/p5-DBD-Mock/DESCR @@ -0,0 +1,11 @@ +Testing with databases can be tricky. If you are developing a system +married to a single database then you can make some assumptions +about your environment and ask the user to provide relevant connection +information. But if you need to test a framework that uses DBI, +particularly a framework that uses different types of persistence +schemes, then it may be more useful to simply verify what the +framework is trying to do -- ensure the right SQL is generated and +that the correct parameters are bound. DBD::Mock makes it easy to +just modify your configuration (presumably held outside your code) +and just use it instead of DBD::Foo (like DBD::Pg or DBD::mysql) +in your framework. |