DBIx::C...:Sandbox(3)

πŸ“¦ version 0.075, in opensuse-leap 16.0

🌸 NAME 🌸

okay bestie, welcome to the DBIx::Class::Migration::Sandbox(3) page β€” it's the User Contributed Perl Documentation for the DB Sandbox Role, and it's here to help you make your very own database sandboxes πŸ’…βœ¨


✨ SYNOPSIS ✨

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;

πŸ¦‹ DESCRIPTION πŸ¦‹

so DBIx::Class::Migration lets you easily create user level sandboxes of your databases, and those are literally perfect for prototyping and development 🫢

it already comes with support for creating MySQL, Sqlite and Postgresql sandboxes. but maybe you have custom sandboxing needs β€” in which case you can create a class that does this role, no cap πŸ”₯

the one required method, make_sandbox, should return something we can pass to connect in DBIx::Class::Schema. that's the whole vibe check πŸ’–


πŸ”₯ 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 🌟


see DBIx::Class::Migration for copyright and license information πŸŽ€


🌸 and that's the whole page, bestie β€” brought to you by perl v5.42.0 docs dated 2020-06-03 🫢✨

πŸ“¦ where this page comes from