|
NAMEDBIx::Class::Migration::RunScript::Trait::Populate - Populate fixtures =head1 SYNOPSISuse DBIx::Class::Migration::RunScript; builder { 'SchemaLoader', 'Populate', sub { shift->populate('countries'); }; }; DESCRIPTIONThis is a Moo::Role that adds a "populate" method to your run script. This allows you to access any of your previously dumped fixtures. You might find this useful when installing a database that was previously setup.This trait requires a "schema" previously defined, such as provided by DBIx::Class::Migration::RunScript::Trait::SchemaLoader. methodsThis class defines the follow methods.populateRequires $arg || @argsGiven a fixture set (or list of sets), use DBIx::Class::Fixtures to populate them to the current database. When naming sets, you skip the '.json' extension. set_has_fixturesRequires $argGiven a set name, returns a boolean about if that set actually has fixtures previously dumped. SEE ALSODBIx::Class::Migration, DBIx::Class::Migration::RunScriptAUTHORSee DBIx::Class::Migration for author informationCOPYRIGHT & LICENSESee DBIx::Class::Migration for copyright and license information
Visit the GSP FreeBSD Man Page Interface. |