NAME

DBIx::Class::Migration::TempDirSandboxBuilder - Build a sandbox in a temporary directory

SYNOPSIS

use DBIx::Class::Migration;

my $migration = DBIx::Class::Migration->new(
  schema_class => 'MyApp::Schema',
  db_sandbox_builder_class => 'DBIx::Class::Migration::TempDirSandboxBuilder');

$migration->install;

$migration->schema->resultset('User')
  ->create({name=>'Test User'});

$migration->schema->resultset('Role')
  ->create({name=>'Administrator'});

$migration->dump_named_sets('users', 'roles');

DESCRIPTION

Helper class that creates a db_sandbox in the temporary directory, and then deletes the directory when the migration object goes out of scope. You might wish to use this for testing.

SEE ALSO

DBIx::Class::Migration.

AUTHOR

See DBIx::Class::Migration for author information

COPYRIGHT & LICENSE

See DBIx::Class::Migration for copyright and license information