DBIx::Table::TestDataGenerator::DBDriverUtils - Common DBI database handle methods
Arguments: none
Returns a database handle for a new in-memory database. This is needed for running the module install tests in case the TDG_... environment variables have not been set. The in-memory database is a SQLite database provided by the wonderful DBD::Sqlite module.
Argument: database handle $dbh
Return Value: db driver name determined from $dbh. Note that the corresponding TableProbe role impersonating class must have this name as last part of it package name.
Pings database with handle $dbh to check if it is available, aborts if not.
Returns the database name as determined from the database handle.
Jos\x{00E9} Diaz Seng, <josediazseng at gmx.de>
<josediazseng at gmx.de>
Copyright 2012 Jos\x{00E9} Diaz Seng.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install DBIx::Table::TestDataGenerator, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::Table::TestDataGenerator
CPAN shell
perl -MCPAN -e shell install DBIx::Table::TestDataGenerator
For more information on module installation, please visit the detailed CPAN module installation guide.