![]() |
![]()
| ![]() |
![]()
NAMEDBIx::Class::Migration::RunScript::Trait::SchemaLoader - Give your Run Script a Schema SYNOPSISuse DBIx::Class::Migration::RunScript; builder { 'SchemaLoader', sub { shift->schema->resultset('Country') ->populate([ ['code'], ['bel'], ['deu'], ['fra'], ]); }; }; DESCRIPTIONThis is a Moo::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). ATTRIBUTESThis class defines the follow attributes schemaUsing DBIx::Class::Schema::Loader create a DBIx::Class::Schema that represents the connected database. SEE ALSODBIx::Class::Migration, DBIx::Class::Migration::RunScript AUTHORSee DBIx::Class::Migration for author information COPYRIGHT & LICENSESee DBIx::Class::Migration for copyright and license information
|