Extension:Wikibase Database

A simple database abstraction layer.

Requirements
requires:


 * PHP 5.3 or above
 * (If used as MediaWiki extension: MediaWiki 1.21 or later)


 * Supported databases


 * MySQL - currently the implementation depends on MediaWiki

As MediaWiki extension
Once you have downloaded the code, place the WikibaseDatabase directory within your MediaWiki 'extensions' directory. Then add the following code to your LocalSettings.php file:

As standalone library
Include WikibaseDatabase/WikibaseDatabase.php. This file includes an autoloader that registers all the classes of the library.

Tests
has PHPUnit tests that can be run using the phpunit.xml.dist file in the root directory of the library. Simply run "phpunit" in the root directory or run it from somewhere else specifying the location of the xml file using the "--configuration" option.

Authors
has been written by Jeroen De Dauw as Wikimedia Germany employee for the Wikidata project.