Created attachment 16485 [details] [review] Bug 9869 - Add object oriented database access system to Koha. This patch adds the framework necessary to enable object oriented database access to Koha via DBIx::SearchBuilder. The advantage to SearchBuilder over DBIx::Class is the fact that SearchBuilder does not require Moose as a prerequisite. This patch includes only one table class, AuthorisedValues as a concept test. Each table can be added as neccessary. Test Plan: 1) Apply patch 2) Run t/db_dependent/SearchBuilder.t
Created attachment 16504 [details] [review] Bug 9869 - Add object oriented database access system to Koha. This patch adds the framework necessary to enable object oriented database access to Koha via DBIx::SearchBuilder. The advantage to SearchBuilder over DBIx::Class is the fact that SearchBuilder does not require Moose as a prerequisite. This patch includes only one table class, AuthorisedValues as a concept test. Each table can be added as neccessary. Test Plan: 1) Apply patch 2) Run t/db_dependent/SearchBuilder.t
(In reply to comment #2) > This patch adds the framework necessary to enable object oriented > database access to Koha via DBIx::SearchBuilder. The advantage to > SearchBuilder over DBIx::Class is the fact that SearchBuilder does > not require Moose as a prerequisite. Neither does DBIx::Class so far as I am aware.
Created attachment 16507 [details] [review] Bug 9869 - Add object oriented database access system to Koha. This patch adds the framework necessary to enable object oriented database access to Koha via DBIx::SearchBuilder. The advantage to SearchBuilder over DBIx::Class is the fact that SearchBuilder does not require Moose as a prerequisite. This patch includes only one table class, AuthorisedValues as a concept test. Each table can be added as neccessary. Test Plan: 1) Apply patch 2) Run t/db_dependent/SearchBuilder.t
(In reply to comment #3) > (In reply to comment #2) > > This patch adds the framework necessary to enable object oriented > > database access to Koha via DBIx::SearchBuilder. The advantage to > > SearchBuilder over DBIx::Class is the fact that SearchBuilder does > > not require Moose as a prerequisite. > > Neither does DBIx::Class so far as I am aware. You are correct. I was misinformed on that point.
Discussion leads me to believe that the use of DBIx::Class will be better long term than using DBIx::SearchBuilder.