Formally defined IDatabase and made a few Database methods protected
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 1 Jul 2015 20:23:54 +0000 (13:23 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 2 Jul 2015 19:26:30 +0000 (12:26 -0700)
commit6e283d394f31ce24470006f09271db2f21a7f0e7
tree433db2761add2c706fe8433e33210b99628132bb
parenta503373f218ba28f2b460581d7f505fa8dcc1146
Formally defined IDatabase and made a few Database methods protected

* IDEs can now make sense of IDatabase, which is useful for
  lazy connections. The interface might also help lower coupling.
* This also updates DBConnRef, which implements IDatabase
* Some discouraged methods are left out of IDatabase.
  These methods either encourage manual query building,
  are only needed by the updater, are obscure/unused,
  or either wise encourage bad practice. DBConnRef still
  supports these if called to avoid breakage though.

Change-Id: Ia83530820f185415725c1d5f54b5172121b4938f
autoload.php
includes/db/DBConnRef.php
includes/db/Database.php
includes/db/IDatabase.php [new file with mode: 0644]