DBIx::Class::Migration::RunScript::Trait::SchemaLoader - Give your Run Script a Schema
use DBIx::Class::Migration::RunScript; builder { 'SchemaLoader', sub { shift->schema->resultset('Country') ->populate([ ['code'], ['bel'], ['deu'], ['fra'], ]); }; };
This is a Moose::Role that adds a schema attribute to your DBIx::Class::Migration::RunScript. This schema is generated via DBIx::Class::Schema::Loader so it is consistent to your actual deployed database structure (it is not dependent on your actual code).
schema
This class defines the follow attributes
Using DBIx::Class::Schema::Loader create a DBIx::Class::Schema that represents the connected database.
DBIx::Class::Migration, DBIx::Class::Migration::RunScript
See DBIx::Class::Migration for author information
See DBIx::Class::Migration for copyright and license information
To install DBIx::Class::Migration, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::Class::Migration
CPAN shell
perl -MCPAN -e shell install DBIx::Class::Migration
For more information on module installation, please visit the detailed CPAN module installation guide.