DBIx::Table::TestDataGenerator::DBDriverUtils - Common DBI database handle methods
Arguments: none
Returns the dsn for an in memory SQLite database, see comment for get_in_memory_dbh.
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.
Arguments: DBI data source name, user and password
Returns the corresponding database handle if a connection can be established, croaks otherwise. If the data source name has not been passed, an in-memory SQLite database is created and the returned database handle points to it.
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.
Jose Diaz Seng, <josediazseng at gmx.de>
<josediazseng at gmx.de>
Copyright 2012 Jose 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.