./databases/p5-DBD-Mock, Perl5 module with mock database driver for testing

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.59nb3, Package name: p5-DBD-Mock-1.59nb3, Maintainer: pkgsrc-users

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.


Required to run:
[databases/p5-DBI] [lang/perl5]

Required to build:
[devel/p5-Module-Build]

Master sites: (Expand)

Filesize: 73.763 KB

Version history: (Expand)


CVS history: (Expand)


   2023-07-06 11:43:03 by Thomas Klausner | Files touched by this commit (2483)
Log message:
*: recursive bump for perl 5.38
   2022-06-28 13:38:00 by Thomas Klausner | Files touched by this commit (3952)
Log message:
*: recursive bump for perl 5.36
   2021-10-26 12:10:08 by Nia Alarie | Files touched by this commit (417)
Log message:
databases: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes

The following distfiles could not be fetched (some may be only fetched
conditionally):

./databases/cstore/distinfo D6.data.ros.gz
./databases/cstore/distinfo cstore0.2.tar.gz
./databases/cstore/distinfo data4.tar.gz
   2021-10-24 10:44:18 by Wen Heping | Files touched by this commit (2)
Log message:
Update to 1.59

Upstream changes:
1.59 2021-02-22T13:25:52Z
    - Added error detection for when a result set's callback doesn't return
      an arrayref or arrayrefs
    - Moved to GitLab for issue tracking

1.58 2020-11-02T13:34:48Z
    - Added the ability for mock result sets to set custom attributes for
      statement handles. Thanks to Erik Huelsmann for testing the new feature.
   2021-10-07 15:35:53 by Nia Alarie | Files touched by this commit (417)
Log message:
databases: Remove SHA1 distfile hashes
   2021-05-24 21:56:06 by Thomas Klausner | Files touched by this commit (3575)
Log message:
*: recursive bump for perl 5.34
   2020-09-20 09:09:17 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
p5-DBD-Mock: update to 1.57.

1.57 2020-09-18T06:57:48Z
    - Fixed bug rt133358 t/016_mock_add_resultset_test.t fails (with older DBI)

1.56 2020-09-17T14:35:10Z
    - The DBD::st module now supports the last_insert_id method
    - Result sets with callbacks can now specify a last_insert_id
   2020-09-06 22:10:53 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
p5-DBD-Mock: update to 1.55.

1.55 2019-12-30T14:20:00Z
    - Fixed bug rt131264 t/033_table_info.t fails (with older DBI)

1.54 2019-12-23T12:44:22Z
    - Added Bernhard Graf's 'Feature: one shot failure' merge request.
    - Fixed description of the failure attribute of mock_add_resultset. It
      no longer claims to support a hash ref (as it doesn't). Thanks to
      Bernhard Graf for both the bug report and a merge request that fixes it.
    - Fixed bug where it wasn't possible to replace a regular expression
      mock resultset. Thanks to Bernhard Graf for both the bug report and
      a merge request that fixes it.
    - Fixed bug where the failure attribute wasn't working with regular
      expression mock resultsets. Thanks to Bernhard Graf for both the bug
      report and a merge request that fixes it.

1.53 2019-12-03T10:50:57Z
    - Error handling in mock_add_resultset is no longer experimental
    - Attribute Aliasing is no longer experimental

1.52 2019-10-28T11:35:41Z
    - Added in callback feature for result sets so that their contents
      can be more dynamic.

1.51 2019-10-23T11:43:51Z
    - Fixed issue with using attribute aliases alongside a driver DSN
      in the DBI->connect call

1.50 2019-10-22T19:37:26Z
    - Added attribute aliases support for MariaDB