[dancer-users] Flexible credentials with Dancer::Plugin::Database
Nick Knutov
mail at knutov.com
Sun May 4 11:12:47 BST 2014
Yes.
Also, you can setup connection manually:
my $newdb = db({
driver => 'mysql',
database => 'test',
host => $s->{name},
port => 3306,
handle_class => '...',
username => 'superuser',
password => $s->{pass},
dbi_params => {
RaiseError => 1,
AutoCommit => 1,
mysql_auto_reconnect => 1,
mysql_enable_utf8 => 1,
on_connect_do => ["SET NAMES 'utf8'", "SET CHARACTER SET 'utf8'" ],
mysql_connect_timeout => 5
}
});
and load config hash manually from different config.
04.05.2014 13:19, Lutz Gehlen пишет:
> So I would have to duplicate the
> db settings in my current development.yml and production.yml and moreover
> would have to exlude those files from version control.
--
Best Regards,
Nick Knutov
http://knutov.com
ICQ: 272873706
Voice: +7-904-84-23-130
More information about the dancer-users
mailing list