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)

_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[EMAIL PROTECTED]

Reply via email to