Pg-DatabaseManager
view release on metacpan or search on metacpan
"File::Which" : "0",
"List::AllUtils" : "0",
"Moose" : "0",
"MooseX::Getopt" : "0",
"MooseX::Params::Validate" : "0.15",
"MooseX::StrictConstructor" : "0",
"MooseX::Types" : "0",
"MooseX::Types::Path::Class" : "0",
"Path::Class" : "0",
"Pg::CLI" : "0.04",
"Test::Differences" : "0",
"Test::More" : "0.88",
"autodie" : "0",
"namespace::autoclean" : "0"
}
},
"test" : {
"requires" : {
"Test::More" : "0.88"
}
}
File::Which: '0'
List::AllUtils: '0'
Moose: '0'
MooseX::Getopt: '0'
MooseX::Params::Validate: '0.15'
MooseX::StrictConstructor: '0'
MooseX::Types: '0'
MooseX::Types::Path::Class: '0'
Path::Class: '0'
Pg::CLI: '0.04'
Test::Differences: '0'
Test::More: '0.88'
autodie: '0'
namespace::autoclean: '0'
resources:
bugtracker: http://rt.cpan.org/NoAuth/Bugs.html?Dist=Pg-DatabaseManager
repository: git://git.urth.org/Pg-DatabaseManager.git
version: '0.06'
x_serialization_backend: 'YAML::Tiny version 1.69'
Makefile.PL view on Meta::CPAN
"File::Which" => 0,
"List::AllUtils" => 0,
"Moose" => 0,
"MooseX::Getopt" => 0,
"MooseX::Params::Validate" => "0.15",
"MooseX::StrictConstructor" => 0,
"MooseX::Types" => 0,
"MooseX::Types::Path::Class" => 0,
"Path::Class" => 0,
"Pg::CLI" => "0.04",
"Test::Differences" => 0,
"Test::More" => "0.88",
"autodie" => 0,
"namespace::autoclean" => 0
},
"TEST_REQUIRES" => {
"Test::More" => "0.88"
},
"VERSION" => "0.06",
"test" => {
"TESTS" => "t/*.t"
Makefile.PL view on Meta::CPAN
"File::Which" => 0,
"List::AllUtils" => 0,
"Moose" => 0,
"MooseX::Getopt" => 0,
"MooseX::Params::Validate" => "0.15",
"MooseX::StrictConstructor" => 0,
"MooseX::Types" => 0,
"MooseX::Types::Path::Class" => 0,
"Path::Class" => 0,
"Pg::CLI" => "0.04",
"Test::Differences" => 0,
"Test::More" => "0.88",
"autodie" => 0,
"namespace::autoclean" => 0
);
unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
delete $WriteMakefileArgs{TEST_REQUIRES};
delete $WriteMakefileArgs{BUILD_REQUIRES};
$WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
File::Which = 0
List::AllUtils = 0
Moose = 0
MooseX::Getopt = 0
MooseX::Params::Validate = 0.15
MooseX::StrictConstructor = 0
MooseX::Types = 0
MooseX::Types::Path::Class = 0
Path::Class = 0
Pg::CLI = 0.04
Test::Differences = 0
Test::More = 0.88
autodie = 0
namespace::autoclean = 0
[Prereqs / TestRequires]
Test::More = 0.88
[@Git]
lib/Pg/DatabaseManager/TestMigrations.pm view on Meta::CPAN
use strict;
use warnings;
use Exporter qw( import );
use File::Slurp qw( read_file );
use File::Temp qw( tempdir );
use MooseX::Params::Validate 0.15 qw( validated_hash );
use Path::Class qw( dir file );
use Pg::CLI::pg_dump;
use Pg::DatabaseManager;
use Test::Differences;
use Test::More;
our @EXPORT_OK = 'test_migrations';
sub test_migrations {
my %p = validated_hash(
\@_,
class => {
isa => 'Str',
default => 'Pg::DatabaseManager',
lib/Pg/DatabaseManager/TestMigrations.pm view on Meta::CPAN
as C<username>, C<password>, C<db_encoding>, etc.
=head1 HOW IT WORKS
The tests are done by creating each version of the database from scratch,
using the appropriate SQL file, then dumping the resulting database with
F<pg_dump>. Then the code recreates each version and runs the migrations from
that version to the max version, comparing the output of F<pg_dump> after each
migration.
It uses L<Test::Differences> to compare the dumped databases.
=head1 BUGS
See L<Pg::DatabaseManager> for details on reporting bugs.
=head1 AUTHOR
Dave Rolsky <autarch@urth.org>
=head1 COPYRIGHT AND LICENSE
( run in 0.522 second using v1.01-cache-2.11-cpan-131fc08a04b )