GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  DBIX::CLASS::MIGRATION::RUNSCRIPT::TRAIT::POPULATE (3)

.ds Aq ’

NAME

DBIx::Class::Migration::RunScript::Trait::Populate - Populate fixtures =head1 SYNOPSIS



    use DBIx::Class::Migration::RunScript;

    builder {
      SchemaLoader,
      Populate,
      sub {
        shift->populate(countries);
      };
    };



CONTENTS

DESCRIPTION

This is a Moose::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.

methods

This class defines the follow methods.

    populate

Requires $arg || @args

Given 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_fixtures

Requires $arg

Given a set name, returns a boolean about if that set actually has fixtures previously dumped.

SEE ALSO

DBIx::Class::Migration, DBIx::Class::Migration::RunScript

AUTHOR

See DBIx::Class::Migration for author information

COPYRIGHT & LICENSE

See DBIx::Class::Migration for copyright and license information
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 DBIX::CLASS::MIGRATION::RUNSCRIPT::TRAIT::POPULATE (3) 2015-03-24

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.