This worked. Thank you.

On Wed, Mar 12, 2014 at 08:33:03AM +0400, aleksander.groschev wrote:
Or you can use that method 
https://groups.google.com/forum/#!topicsearchin/mojolicious/DBI/mojolicious/lnRtaTinx-k

helper db => sub {
 my $self = shift;
my $db = DBI->connect("dbi:Pg:database=$database;host=$host", $user, $pass);
 $db->{pg_enable_utf8}=1;
 return $db;
};

--
Neil Watson
Linux/UNIX Consultant
http://watson-wilson.ca

--
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to