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
DBIx::Class::Migration::RunScript::Trait::SchemaLoader(3) User Contributed Perl Documentation DBIx::Class::Migration::RunScript::Trait::SchemaLoader(3)

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

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
2020-06-02 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

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