
DBIx::Class::Migration::Sandbox - DB Sandbox Role

package MyApp::Schema::Sandbox;
use Moose;
with 'DBIx::Class::Migration::Sandbox';
sub make_sandbox {
my ($self) = @_;
## Custom Processing to establish a running database
return $dsn, $user, $password;
}
__PACKAGE__->meta->make_immutable;

DBIx::Class::Migration lets you easily create user level sandboxes of your databases, which are suitable for prototyping and development. It comes with support for creating MySQL, Sqlite and Postgresql sandboxes. However you might have custom sandboxing needs. In which you can create a class that does this role.
The one required method make_sandbox, should return something we can pass to "connect" in DBIx::Class::Schema.

DBIx::Class::Migration, DBIx::Class::Migration::SqliteSandbox, DBIx::Class::Migration::MySQLSandbox, DBIx::Class::Migration::PostgresqlSandbox

See DBIx::Class::Migration for author information

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