The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Changes for version 0.14

  • added the mock_last_insert_id attribute which will get incremented upon each INSERT query run.
    • added tests and docs for this
  • added the mock_start_insert_id attirbute so that you can both reset and set the start number for mock_last_insert_id
    • added tests and docs for this
  • EXPERIMENTAL FEATURE (use caution) **
  • added a feature to alias attributes. Basically it allows you to alias an expected attribute like 'mysql_insertid' to something DBD::Mock already has like 'mock_last_insert_id'. Right now this feature is highly experimental, and has been added as a first attempt automatically handle some of the DBD specific attributes which are commonly used/accessed in DBI programming.

Modules

Mock database driver for testing

Provides

in lib/DBD/Mock.pm
in lib/DBD/Mock.pm
in lib/DBD/Mock.pm
in lib/DBD/Mock.pm
in lib/DBD/Mock.pm
in lib/DBD/Mock.pm