commit | 9f8028799d9d81d1a56a52a509302507f6e16aee | [log] [tgz] |
---|---|---|
author | Kunal Mehta <legoktm@member.fsf.org> | Thu Feb 11 13:47:10 2016 -0800 |
committer | Kunal Mehta <legoktm@member.fsf.org> | Thu Feb 11 13:47:10 2016 -0800 |
tree | 907f417e3a9c2ff305f1f1da0a00c2b5b1211a44 | |
parent | 81f835c6e11024ab1f578b02fba98c77c86be09c [diff] |
Rename "test" directory to "tests" For consistency with all other libraries. Change-Id: I4144b4c5c5fbb8a1fe456cfd33f9bce74f77b955
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.