![]() |
![]()
| ![]() |
![]()
NAMEDBIx::Class::Migration::Sandbox - DB Sandbox Role SYNOPSISpackage MyApp::Schema::Sandbox; use Moo; 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; DESCRIPTIONDBIx::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 ALSODBIx::Class::Migration, DBIx::Class::Migration::SqliteSandbox, DBIx::Class::Migration::MySQLSandbox, DBIx::Class::Migration::PostgresqlSandbox AUTHORSee DBIx::Class::Migration for author information COPYRIGHT & LICENSESee DBIx::Class::Migration for copyright and license information
|