]> 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)
committerMason James <mtj@kohaaloha.com>
Fri, 29 May 2015 05:53:40 +0000 (17:53 +1200)
commit462626ea9d429970302def924cbab1c62254351a
tree89f188ba957e33c324b1582c70ce73512f066291
parent07beefe8d6ebcbd3fd72d6423221268d4fb43f7b
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>
Signed-off-by: Mason James <mtj@kohaaloha.com>
Koha/Database.pm
t/db_dependent/Koha_Database.t