DBIx::C...xBuilder(3)
πΈ NAME πΈ
Okay bestie, welcome to DBIx::C...xBuilder(3) β a page from the User Contributed Perl Documentation β and the actual module is DBIx::Class::Migration::TempDirSandboxBuilder. It's a helper class that builds a sandbox in a temporary directory. Cute, useful, iconic. π
β¨
β¨ SYNOPSIS β¨
Here's the whole setup in code, no cap:
use DBIx::Class::Migration;
my $migration = DBIx::Class::Migration->new(
schema_class => 'MyApp::Schema',
db_sandbox_builder_class => 'DBIx::Class::Migration::TempDirSandboxBuilder');
$migration->install;
$migration->schema->resultset('User')
->create({name=>'Test User'});
$migration->schema->resultset('Role')
->create({name=>'Administrator'});
$migration->dump_named_sets('users', 'roles');
π¦ DESCRIPTION π¦
So this helper class creates a "db_sandbox" in the temporary directory, and then it deletes that directory when the migration object goes out of scope. Poof, gone, that's the vibe. π«Ά You might wish to use this for testing. Fr fr, that's the whole deal.
π SEE ALSO π
DBIx::Class::Migrationβ your next stop, bestie.
π AUTHOR π
Author information? It's over in DBIx::Class::Migration. Go look there. π«Ά
π COPYRIGHT & LICENSE π
Copyright and license info? Also over in DBIx::Class::Migration. Periodt.
This page was served with perl v5.42.0 on 2020-06-03 β slay, bye! π
πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-DBIx-Class-Migration 0.075-bp160.1.10 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms