Bug 9869 - Add object oriented database access system to Koha.
Summary: Add object oriented database access system to Koha.
Status: CLOSED INVALID
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: 3.14
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Kyle M Hall
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-20 10:36 UTC by Kyle M Hall
Modified: 2014-12-07 20:02 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments
Bug 9869 - Add object oriented database access system to Koha. (6.05 KB, patch)
2013-03-20 10:36 UTC, Kyle M Hall
Details | Diff | Splinter Review
Bug 9869 - Add object oriented database access system to Koha. (11.86 KB, patch)
2013-03-20 11:30 UTC, Kyle M Hall
Details | Diff | Splinter Review
Bug 9869 - Add object oriented database access system to Koha. (11.87 KB, patch)
2013-03-20 12:17 UTC, Kyle M Hall
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Kyle M Hall 2013-03-20 10:36:19 UTC

    
Comment 1 Kyle M Hall 2013-03-20 10:36:58 UTC Comment hidden (obsolete)
Comment 2 Kyle M Hall 2013-03-20 11:30:52 UTC Comment hidden (obsolete)
Comment 3 Jared Camins-Esakov 2013-03-20 11:41:57 UTC
(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.
Comment 4 Kyle M Hall 2013-03-20 12:17:50 UTC
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
Comment 5 Kyle M Hall 2013-04-01 12:19:06 UTC
(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.
Comment 6 Kyle M Hall 2013-04-01 20:07:58 UTC
Discussion leads me to believe that the use of DBIx::Class will be better long term than using DBIx::SearchBuilder.