NAME
DBIx::Class::Migration::Sandbox - DB Sandbox Role
SYNOPSIS
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;
DESCRIPTION
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.
SEE ALSO
DBIx::Class::Migration, DBIx::Class::Migration::SqliteSandbox, DBIx::Class::Migration::MySQLSandbox, DBIx::Class::Migration::PostgresqlSandbox
AUTHOR
See DBIx::Class::Migration for author information
COPYRIGHT & LICENSE
See DBIx::Class::Migration for copyright and license information