Test::DBIC::SQLite - Connect and deploy a DBIx::Class::Schema on SQLite
use Test::More; use Test::DBIC::SQLite; my $schema = connect_dbic_sqlite_ok('My::Schema'); done_testing();
Create an SQLite database (default in memory) and deploy the schema.
Positional.
The class name of the DBIx::Class::Schema to use.
The default is :memory:, but a name for diskfile can be set here.
The callback is a codereference that is called after deploy and just before returning the schema instance. Usefull for populating the database.
An initialized instance of $class.
$class
(c) MMXV - Abe Timmerman <abeltje@cpan.org>
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
To install Test::DBIC::SQLite, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::DBIC::SQLite
CPAN shell
perl -MCPAN -e shell install Test::DBIC::SQLite
For more information on module installation, please visit the detailed CPAN module installation guide.