when running perl scripts in deploy, use a $schema that is generated from the current...
[dbsrgits/DBIx-Class-DeploymentHandler.git] / lib / DBIx / Class / DeploymentHandler / HandlesProvideSchema.pm
CommitLineData
7d876442 1package DBIx::Class::DeploymentHandler::HandlesProvideSchema;
2use Moose::Role;
3
4# ABSTRACT: Interface for providing a $schema to the deployment scripts
5
6requires 'migration_schema';
7
81;
9
10# vim: ts=2 sw=2 expandtab
11
12__END__
13
14=method schema_for_run_files
15
16 my $schema = $dh->schema_for_run_files;
17
18Provides a L<DBIx::Class::Schema> object that we can pass to the Perl deploy
19scripts.
20
21=head1 KNOWN IMPLEMENTATIONS
22
23=over
24
25=item *
26
27L<DBIx::Class::DeploymentHandler::ProvideSchema::FromCurrent>
28
29=item *
30
31L<DBIx::Class::DeploymentHandler::ProvideSchema::SQL::SchemaLoader>
32
33=back
34