Open mattab opened 9 years ago
we should already start creating new Dao classes suffixed with Dao.
I suggest we aim to refactor consistently across core codebase and plugins to use Dao
(instead of Model
), and move most of the spread-around SQL in new Dao
classes, for Piwik 3.0.0
We will make some progress on moving SQL to Dao, especially for Tracker + Archiver.
The rest will be done later, if anyone wants to help, please submit pull requests :-)
The goal of this issue is to extract the SQL queries from the codebase into
Dao
objects. When this issue is done, all SQL queries in Piwik will be in their ownDao
objects and not spread across many other objects. this will make the platform codebase more consistent and slightly easier to work with.Steps
Follows up #7540
(this is also a small first step that will later help work on postgresql support in #500)