wiki.techinc.nl/includes/db
Tim Starling 0e73205470 General database-related code cleanup:
* Merged the 4 simulated implementations of Database*::replace(). I took diffs, they were nearly identical. I made one based on the IBM DB2 version, since it used insert() which looked like a nice touch.
* Provided the non-simulated implementation of Database*::replace() via a protected member function, and made DatabaseMysql::replace() and DatabaseSqlite::replace() into a wrapper for it. 
* Moved the MySQL-specific functionality from masterPosWait(), getSlavePos() and getMasterPos() from DatabaseBase to DatabaseMysql. 
* Renamed getStatus() to getMysqlStatus() and moved it to DatabaseMysql. Removed "unimplemented" errors from two other subclasses. Really there's no way another DBMS could or should implement this function. 
* Split the LoadMonitor class into a no-op class and a MySQL-specific class, to avoid fatal errors due to the getMysqlStatus() call if other DBMSs tried to use LoadBalancer with multiple servers. Of course there are lots of other reasons it won't work, I'm just fixing the architecture issue here.

And while I have a replicated test setup handy:
* On MySQL 4.1.9 and later, use SHOW SLAVE STATUS to get the lag instead of SHOW PROCESSLIST. This has the advantage of reading zero when there are no events for a while.
2011-06-23 03:14:11 +00:00
..
CloneDatabase.php $newTablePrefix must be passed. All callers are ok 2011-05-30 02:06:12 +00:00
Database.php General database-related code cleanup: 2011-06-23 03:14:11 +00:00
DatabaseError.php More documentation stuffs 2011-05-25 18:58:02 +00:00
DatabaseIbm_db2.php General database-related code cleanup: 2011-06-23 03:14:11 +00:00
DatabaseMssql.php General database-related code cleanup: 2011-06-23 03:14:11 +00:00
DatabaseMysql.php General database-related code cleanup: 2011-06-23 03:14:11 +00:00
DatabaseOracle.php General database-related code cleanup: 2011-06-23 03:14:11 +00:00
DatabasePostgres.php General database-related code cleanup: 2011-06-23 03:14:11 +00:00
DatabaseSqlite.php General database-related code cleanup: 2011-06-23 03:14:11 +00:00
DatabaseUtility.php General database-related code cleanup: 2011-06-23 03:14:11 +00:00
LBFactory.php And even more documentation 2011-05-28 18:58:51 +00:00
LBFactory_Multi.php And even more documentation 2011-05-28 18:58:51 +00:00
LBFactory_Single.php Even more documentation in various files 2011-05-29 14:24:27 +00:00
LoadBalancer.php General database-related code cleanup: 2011-06-23 03:14:11 +00:00
LoadMonitor.php General database-related code cleanup: 2011-06-23 03:14:11 +00:00