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::SCHEMALOADER (3)

.ds Aq ’

NAME

DBIx::Class::Migration::RunScript::Trait::SchemaLoader - Give your Run Script a Schema

CONTENTS

SYNOPSIS



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

    builder {
      SchemaLoader,
      sub {
        shift->schema->resultset(Country)
          ->populate([
          [code],
          [bel],
          [deu],
          [fra],
        ]);
      };
    };



DESCRIPTION

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).

ATTRIBUTES

This class defines the follow attributes

    schema

Using DBIx::Class::Schema::Loader create a DBIx::Class::Schema that represents the connected database.

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::SCHEMALOADER (3) 2015-03-24

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