[Dbix-class] Multiple connections

Will Crawford billcrawford1970 at gmail.com
Thu Jan 16 13:09:40 GMT 2014


Copy your lib/MyApp/Model/DB.pm (or whatever it's called), and in the
second copy, add the mysql_enable_utf8 => 1 to __PACKAGE__->config( {
... } ); or add it in your myapp.conf under the new model name.


On 16 January 2014 11:06, Dave Howorth <dhoworth at mrc-lmb.cam.ac.uk> wrote:
> Is there a good (authoritative?) description of how DBIx::Class manages
> database connections? Including whatever is done by other packages
> underneath.
>
> I think I need to make two connections to the same MySQL database with
> different settings of the mysql_enable_utf8 option. But calling
> connection twice seems to result in a single connection.
>
> Thanks, Dave
>
> _______________________________________________
> 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/dbix-class@lists.scsys.co.uk



More information about the DBIx-Class mailing list