commit | 32b1033d5895861ed8199daad016dfd9f24eb987 | [log] [tgz] |
---|---|---|
author | Kunal Mehta <legoktm@gmail.com> | Fri Oct 23 11:04:44 2015 -0700 |
committer | Kunal Mehta <legoktm@gmail.com> | Fri Oct 23 11:04:44 2015 -0700 |
tree | 60930bce4c3a798055d86523ca44932de755c6c2 | |
parent | ec9c9bef498ac1eda2df02ba7b9a8d7f1df12b92 [diff] |
build: Upgrade mediawiki-codesniffer from v0.4.0 to v0.5.0 Change-Id: Ic2f047a95aa6a8d7015451a2244f000116afc6ed
CDB, short for "constant database", refers to a very fast and highly reliable database system which uses a simple file with key value pairs. This library wraps the CDB functionality exposed in PHP via the dba_*
functions. In cases where dba_*
functions are not present or are not compiled with CDB support, a pure-PHP implementation is provided for falling back.
Additional documentation about the library can be found on MediaWiki.org.
// Reading a CDB file $cdb = \Cdb\Reader::open( 'db.cdb' ); $foo = $cdb->get( 'somekey' ); // Writing to a CDB file $cdb = \Cdb\Writer::open( 'anotherdb.cdb' ); $cdb->set( 'somekey', $foo );
composer install --prefer-dist composer test
This library was first introduced in MediaWiki 1.16 (r52203). It was split out of the MediaWiki codebase and published as an independent library during the MediaWiki 1.25 development cycle.