DBIx-Class-Schema-Loader
view release on metacpan or search on metacpan
lib/DBIx/Class/Schema/Loader.pm view on Meta::CPAN
My::Schema->connection(.......);
My::OtherSchema->connection(.......);
=cut
sub import {
my $self = shift;
return if !@_;
my $cpkg = (caller)[0];
foreach my $opt (@_) {
if($opt =~ m{^dump_to_dir:(.*)$}) {
$self->dump_to_dir($1)
}
elsif($opt eq 'make_schema_at') {
no strict 'refs';
*{"${cpkg}::make_schema_at"} = \&make_schema_at;
}
elsif($opt eq 'naming') {
( run in 0.897 second using v1.01-cache-2.11-cpan-1e74a51a04c )