]> git.koha-community.org Git - koha.git/commit
Bug 13645: Cache the DBIx connection
authorJonathan Druart <jonathan.druart@biblibre.com>
Fri, 30 Jan 2015 16:10:54 +0000 (17:10 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Fri, 20 Feb 2015 17:37:08 +0000 (14:37 -0300)
commit354ee6d427e3ec8fc926d7fb793141a127733258
tree710acd0dffa3a0b65a49572a11d42393db14747d
parent5db89aa1e93b3156989e55179f8d7295833e3c12
Bug 13645: Cache the DBIx connection

We don't want to recreate a new connection to the DB every time we want
a new schema.

This patch creates a $database package level variable on the same way
it's done in C4::Context for $dbh.

Signed-off-by: Jacek Ablewicz <abl@biblos.pk.edu.pl>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha/Database.pm
t/db_dependent/Koha_Database.t