1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49:
<?php
namespace qdb;
/**
* Welcome to quasardb API for PHP
*
* Interfacing with a quasardb database from a PHP program is extremely straightforward, just create a {@link QdbCluster} and perform the operations.
* <code>
* $cluster = new QdbCluster('qdb://127.0.0.1:2836');
* </code>
*
* OK, now that we have a connection to the database, let's store some binary data::
* <code>
* $blob = $cluster->blob('Bob the blob');
*
* $blob->put('firstValue');
* $blob->update('secondValue');
* $value = $blob->get();
* </code>
*
* Quasardb provides concurrent double-ended queue, or "deque"
* <code>
* $queue = $cluster->deque('Andrew the queue');
*
* $queue->pushBack('firstValue');
* $queue->pushBack('secondValue');
* $value = $queue->popFront();
* </code>
*
* quasardb comes out of the box with server-side atomic integers:
* <code>
* $integer = $cluster->integer('Roger the integer');
*
* $integer->put(42);
* $total = $integer->add(12);
* </code>
*
* Here's how you can easily find your data, using tags:
* <code>
* $cluster->blob('Bob the blob')->attachTag('Male');
* $cluster->integer('Roger the integer')->attachTag('Male');
*
* $males = $cluster->tag('Male')->getEntries();
* </code>
*
* The source code of this library can be found on <a href='https://github.com/bureau14/qdb-api-php'>GitHub</a>.
* @see QdbBlob, QdbInteger, QdbDeque, QdbTag
*/
function Introduction();