| 1 | package DBIx::Class::Migration::TargetDirSandboxBuilder; | ||
| 2 | |||
| 3 | 8 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 8 | has migration => ( | |
| 6 | is => 'ro', | ||
| 7 | weak_ref => 1, | ||
| 8 | required => 1); | ||
| 9 | |||
| 10 | 12 | ▶ | sub build { |
|
Subroutine
build: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 11 | 12 | my $migration = shift->migration; | |
| 12 | 12 | return $migration->db_sandbox_class | |
| 13 | ->new(target_dir=>$migration->target_dir, | ||
| 14 | schema_class=>$migration->_infer_schema_class); | ||
| 15 | } | ||
| 16 | |||
| 17 | 8 | __PACKAGE__->meta->make_immutable; | |
| 18 | |||
| 19 | =head1 NAME | ||
| 20 | |||
| 21 | DBIx::Class::Migration::TargetDirSandboxBuilder - Build a sandbox at target_dir | ||
| 22 | |||
| 23 | =head1 SYNOPSIS | ||
| 24 | |||
| 25 | use DBIx::Class::Migration::TargetDirSandboxBuilder; | ||
| 26 | |||
| 27 | =head1 DESCRIPTION | ||
| 28 | |||
| 29 | Helper class that creates a C<db_sandbox> in the C<target_dir>. | ||
| 30 | |||
| 31 | =head1 SEE ALSO | ||
| 32 | |||
| 33 | L<DBIx::Class::Migration>, L<DBIx::Class::Migration::Sandbox>. | ||
| 34 | |||
| 35 | =head1 AUTHOR | ||
| 36 | |||
| 37 | See L<DBIx::Class::Migration> for author information | ||
| 38 | |||
| 39 | =head1 COPYRIGHT & LICENSE | ||
| 40 | |||
| 41 | See L<DBIx::Class::Migration> for copyright and license information | ||
| 42 | |||
| 43 | =cut | ||
| 44 | |||
| 45 | |||