Quasardb API for PHP
Introduction Installation Compilation Configuration API Reference

Classes

  • QdbBatch
  • QdbBatchResult
  • QdbBlob
  • QdbCluster
  • QdbDeque
  • QdbEntry
  • QdbEntryCollection
  • QdbExpirableEntry
  • QdbHashSet
  • QdbInteger
  • QdbTag
  • QdbTagCollection

Exceptions

  • QdbAliasAlreadyExistsException
  • QdbAliasNotFoundException
  • QdbConnectionException
  • QdbContainerEmptyException
  • QdbException
  • QdbIncompatibleTypeException
  • QdbInputException
  • QdbOperationDisabledException
  • QdbOperationException
  • QdbProtocolException
  • QdbSystemException
 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: 50: 51: 52: 53: 54: 55: 56: 
<?php
/**
 * 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>
 *
 * We also provide distributed sets.
 * <code>
 * $set = $cluster->hashSet('Janet the set');
 *
 * $set->insert('value');
 * $set->erase('value');
 * $hasValue = $set->contains('value');
 * </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 by found on <a href='https://github.com/bureau14/qdb-api-php'>GitHub</a>.
 * @see QdbBlob, QdbHashSet, QdbInteger, QdbDeque, QdbTag
 */
function Introduction();
Copyright 2009-2017 quasardb SAS Documentation generated by ApiGen