App-CatalystStarter-Bloated
view release on metacpan or search on metacpan
lib/App/CatalystStarter/Bloated.pm view on Meta::CPAN
} ## finalize_argv.t
## dsn related
sub _prepare_dsn {
my $dsn = shift;
return $dsn if $ARGV{'--nodsnfix'};
## unlikely but guess it could happen
l->debug("Prepended litteral 'dbi' to dsn") if $dsn =~ s/^:/dbi:/;
## if it doesn't start with dbi: by now, we'll nicely provide that
if ( lc substr( $dsn, 0, 4 ) ne "dbi:" ) {
l->debug("Prepended 'dbi:' to dsn");
$dsn = "dbi:" . $dsn;
}
## taking care of case, should there be issues
l->info("Setting dsn scheme to lowercase 'dbi:'" )
( run in 0.585 second using v1.01-cache-2.11-cpan-702932259ff )