DBIx::C...ox_class(3)
π DBIx::Class::Migration::Script::Help::sandbox_class(3)
okay so bestie, you found the page for DBIx::Class::Migration::Script::Help::sandbox_class β and yes, it's from the User Contributed Perl Documentation collection, but honestly it's just a lil help page for one single option and it's lowkey adorable. let's get into it π
β¨ NAME β¨
DBIx::Class::Migration::Script::Help::sandbox_class
that's it. that's the name. main character module energy, no cap. π
πΈ SYNOPSIS πΈ
dbic-migration install --schema_class MyApp::Schema --sandbox_class MySQLSandbox
see how easy that is? one flag, one vibe change, done. β¨
π¦ DESCRIPTION π¦
okay so first things first, the boring-but-important bits:
π Aliases
Tsb
you can call it by its nickname, iykyk. it's giving "close friends only". π
π Value
- String (default:
SqliteSandbox)
so here's the whole situation, bestie: if you don't have a target database for your migrations β like, maybe you're just doing dev stuff, or you're in that initial prototyping era where nothing is real yet β we automatically create a local database sandbox in your target_dir in DBIx::Class::Migration::Script. it's automatic. we got you. π«Ά
by default this sandbox is a file based DBD::Sqlite database, and ngl that's the easy option since chances are good this is already installed on your development computer. and if it's not? it is trivial to install. literally trivial. π
you can change this to either PostgresqlSandbox or MySQLSandbox, which will create a sandbox using either DBIx::Class::Migration::MySQLSandbox or DBIx::Class::Migration::PostgresqlSandbox β and those in turn require the separate installation of either Test::mysqld or Test::Postgresql58. so like, yes bestie you can upgrade the vibe, but you gotta install the extra stuff first. the way that extra dependency sneaks up on you π
like some of the other option flags, you can specify this with an %ENV setting:
export DBIC_MIGRATION_SANDBOX_CLASS=MySQLSandbox
environment variable, set it, forget it, slay. π
the default sqlite sandbox is documented at DBIx::Class::Migration::SQLiteSandbox, although this single file database is pretty straightforward to use. like, it's a whole documented module but honestly it's not that deep. π
heads up bestie: if you go thePostgresqlSandboxorMySQLSandboxroute, don't forget those separateTest::mysqld/Test::Postgresql58installs β the sandbox won't happen without them. π₯
β SEE ALSO β
go read these too, they're iconic:
DBIx::Class::MigrationDBIx::Class::Migration::ScriptDBIx::Class::Migration::FeaturesDBIx::Class::Migration::Tutorial
π AUTHOR π
See DBIx::Class::Migration for author information. (go look, bestie, it's all over there π«Ά)
π COPYRIGHT & LICENSE π
See DBIx::Class::Migration for copyright and license information. (same deal, it lives over there β¨)
and that's the page, bestie! πΈ this one shipped as perl v5.42.0 and was dated 2020-06-03 β so like, vintage but still cute. mwah ππ
π¦ 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