DBIx-DBO2
view release on metacpan or search on metacpan
t/get_test_dsn.pl view on Meta::CPAN
database driver. Using that connection, this test script will create
several tables, run various queries against them, and then drop them.
Although this should not affect other applications, for safety's sake, use
a test account or temporary data space, and avoid testing this on any
mission-critical production systems.
In order to run this test script against a local database, set the
DBI_DSN environment variable to your connection string before running the
tests, and if needed, also set the DBI_USER and DBI_PASS variables.
Example: > setenv DBI_DSN "DBI:mysql:test"; make test
If you are running individual test scripts, you can pass the DSN,
username, and password as command-line arguments to the test.
Example: > perl -Iblib/lib t/standard.t "DBI:mysql:test"
This script will now query DBI for available drivers and suggested DSNs:
.
%common_cases = (
'AnyData' => 'dbi:AnyData:',
( run in 0.444 second using v1.01-cache-2.11-cpan-3989ada0592 )