Bug 12608 - Replace use of DBI with DBIx::Class throughout Koha
Summary: Replace use of DBI with DBIx::Class throughout Koha
Status: CLOSED WONTFIX
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Kyle M Hall (khall)
QA Contact: Testopia
URL:
Keywords:
Depends on: 11385 12609 12610
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-18 14:40 UTC by Kyle M Hall (khall)
Modified: 2017-05-23 19:48 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kyle M Hall (khall) 2014-07-18 14:40:56 UTC
Now that we have DBIx::Class, we should use it wherever possible.

Long term steps:
1) Replace all DBI inserts and deletes with DBIC creates and deletes
2) Replace all DBI selects with DBIC searches using DBIx::Class::ResultClass::HashRefInflator to return hashrefs for compatibility
3) Move logic from perl modules into Result and ResultSet classes wherever possible and sensible.
Comment 1 Josef Moravec 2017-05-23 19:48:31 UTC
As we are using Koha::Object(s) now, this is not needed now.