Abstract database specific helper methods to PDO adapter #19648
Labels
Enhancement
For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Milestone
Various methods the
core/Db
andcore/DbHelper
helper classes execute MySQL specific statements. In order to support alternative databases these statements should be moved to new methods defined incore/Db/AdapterInterface
and implemented by the chosen PDO Adapter.Suggested Approach
core/Db
andcore/DbHelper
, identify those which are very specific to MySQL.core/Db/AdapterInterface
.core/Db/Adapter/Pdo/Mysql
.core/Db
andcore/DbHelper
method to call the new methods on the PDO adapter.An example of a MySQL specific helper function is
DbHelper::getDefaultCharset())
which fails on TiDB, SingleStore and likely other databases.The text was updated successfully, but these errors were encountered: