table of contents
DBIx::Class::Migration::Script::Help::sandbox_class(3) | User Contributed Perl Documentation | DBIx::Class::Migration::Script::Help::sandbox_class(3) |
NAME¶
DBIx::Class::Migration::Script::Help::sandbox_class
SYNOPSIS¶
dbic-migration install --schema_class MyApp::Schema --sandbox_class MySQLSandbox
DESCRIPTION¶
If you don't have a target database for your migrations (as you might not for your development setup, or during initial prototyping) we automatically create a local database sandbox in your "target_dir" in DBIx::Class::Migration::Script.
By default this sandbox is a file based DBD::Sqlite database, which is an easy option since changes are good this is already installed on your development computer (and if not it is trivial to install).
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 (which in term require the separate installation of either Test::mysqld or Test::Postgresql58).
Like some of the other option flags you can specify with an %ENV setting:
export DBIC_MIGRATION_SANDBOX_CLASS=MySQLSandbox
The default sqlite sandbox is documented at DBIx::Class::Migration::SQLiteSandbox although this single file database is pretty straightforward to use.
SEE ALSO¶
DBIx::Class::Migration, DBIx::Class::Migration::Script, DBIx::Class::Migration::Features, DBIx::Class::Migration::Tutorial
AUTHOR¶
See DBIx::Class::Migration for author information
COPYRIGHT & LICENSE¶
See DBIx::Class::Migration for copyright and license information
2020-06-03 | perl v5.40.0 |