]> 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)
committerChris Cormack <chrisc@catalyst.net.nz>
Tue, 10 Mar 2015 18:56:01 +0000 (07:56 +1300)
commit6cf0b372ef25635be903688d2629a0d86ce31d5a
tree69e5d197d5a578c6b1945a998d5f879b0cc1fea1
parent2450c9f5f21dd1eeb03396f215208ba6c939f8c4
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>
(cherry picked from commit 354ee6d427e3ec8fc926d7fb793141a127733258)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Koha/Database.pm
t/db_dependent/Koha_Database.t