| 1 | package DBIx::SchemaChecksum::App::Checksum; | ||||||||||
| 2 | |||||||||||
| 3 | # ABSTRACT: get the current DB checksum | ||||||||||
| 4 | 2 | our $VERSION = '1.106'; # VERSION | |||||||||
| 5 | |||||||||||
| 6 | 2 | ▶ | use 5.010; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 2 | ▶ | use MooseX::App::Command; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 2 | extends qw(DBIx::SchemaChecksum::App); | |||||||||
| 10 | |||||||||||
| 11 | 2 | option 'show_dump' => ( | |||||||||
| 12 | is => 'ro', | ||||||||||
| 13 | isa => 'Bool', | ||||||||||
| 14 | documentation => q[Show the raw database dump structure], | ||||||||||
| 15 | default => 0, | ||||||||||
| 16 | ); | ||||||||||
| 17 | |||||||||||
| 18 | 2 | ▶ | sub run { | ||||||||
|
Subroutine
run: called CC=2 SCAR=6.9
| |||||||||||
| 19 | 2 | my $self = shift; | |||||||||
| 20 | |||||||||||
| 21 | 2 | say $self->checksum; | |||||||||
| 22 | 2 | ▶ | say $self->_schemadump if $self->show_dump; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 23 | } | ||||||||||
| 24 | |||||||||||
| 25 | 2 | __PACKAGE__->meta->make_immutable(); | |||||||||
| 26 | 2 | 1; | |||||||||
| 27 | |||||||||||
| 28 | __END__ | ||||||||||