Re: [Catalyst] example of sep db config args (was Re: Accessing DB from external model)

2010-11-08 Thread Darren Duncan
Darren Duncan wrote: sub _lazy_default_for_dbc { my ($process) = @_; my $dbc = try { my $dsn = sprintf( q{dbi:Pg:dbname=%s;host=%s;port=%s}, $process->db_name(), $process->db_host(), $process->db_port() ); my $dbc = DBIx::Connector->ne

[Catalyst] example of sep db config args (was Re: Accessing DB from external model)

2010-11-06 Thread Darren Duncan
P.S. While answering a question, this email could be adapted for a Catalyst cookbook / etc entry if one wants to. Octavian Rasnita wrote: I agree and yes, that sample code could give bad ideas. In my case I am the app designer, coder, maintainer, site admin, everything but the web designer an