GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
DBIx::Class::Migration::Sandbox(3) User Contributed Perl Documentation DBIx::Class::Migration::Sandbox(3)

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

    package 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;

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
2020-06-02 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.