Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
DBIx::Class::MigratioDUser:ContributedaPerl:DocumentationNAME
       DBIx::Class::Migration::RunScript::Trait::SchemaLoader -	Give your Run
       Script a	Schema

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

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

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

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

perl v5.32.1	     DBIx::Class::Migration::RunScript::Trait::SchemaLoader(3)

NAME | SYNOPSIS | DESCRIPTION | ATTRIBUTES | SEE ALSO | AUTHOR | COPYRIGHT & LICENSE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=DBIx::Class::Migration::RunScript::Trait::SchemaLoader&sektion=3&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help