Koha-Contrib-Tamil
view release on metacpan or search on metacpan
lib/Koha/Contrib/Tamil/Koha.pm view on Meta::CPAN
my $c = $self->conf->{config};
$self->dbh( DBI->connect(
"DBI:" . $c->{db_scheme} .
":dbname=" . $c->{database} .
";host=" . $c->{hostname} .
";port=" . $c->{port},
$c->{user}, $c->{pass} )
) or carp $DBI::errstr;
if ( $c->{db_scheme} eq 'mysql' ) {
# Force utf8 communication between MySQL and koha
$self->dbh->{ mysql_enable_utf8 } = 1;
$self->dbh->do( "set NAMES 'utf8'" );
$self->dbh->{ mysql_auto_reconnect } = 1;
my $tz = $ENV{TZ};
($tz) and $self->dbh->do( qq(SET time_zone = "$tz") );
}
# Zebra connections
$self->_zconn( { biblio => undef, auth => undef } );
# ElasticSearch
( run in 0.354 second using v1.01-cache-2.11-cpan-00829025b61 )