[Dbix-class] Feature proposal for
DBIx::Class::Storage::DBI::connect_info
Oleg Kostyuk
cub.uanic at gmail.com
Tue Aug 26 10:58:47 BST 2008
Hello all.
Pass one hashref to connect_info is more clean and self-documented, so
I created patch to allow this.
With this patch, for example, we can say in Catalyst-based application
config something like this:
<Model::DB>
schema_class App::DB
<connect_info>
dsn dbi:mysql:database=test
user testuser
password TestPass
AutoCommit 1
</connect_info>
</Model::DB>
or in code:
...->connect_info(
[{
dsn => 'dbi:Pg:dbname=foo',
user => 'postgres',
password => 'my_pg_password',
AutoCommit => 1,
quote_char => q{"},
name_sep => q{.},
}]
);
Patch attached, and also accessible via RT#38720
--
Sincerely yours,
Oleg Kostyuk (CUB-UANIC)
More information about the DBIx-Class
mailing list