Skip to content

Instantly share code, notes, and snippets.

@janl
Created July 1, 2011 14:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save janl/1058683 to your computer and use it in GitHub Desktop.
Save janl/1058683 to your computer and use it in GitHub Desktop.
$query = $this->cb->queries("name");
Couchbase_QueryOptions $options = array(
"limit" => false,
"skip" => 0,
"descending" => false,
"stale" => false,
"group" => false,
"group_level" => 0,
"reduce" => true,
"inclusive_end" => false // only valid in getResultsByRange
);
$result = $query->getResultAll([$options]);
$result = $query->getResultByKey($key, [$options]);
$result = $query->getResultRange($start, $end, [$options]);
// $start = "key";
// $start = array("key", "docid");
// $end = "key";
// $end = array("key", "docid");
$result = $query->getResultPage([$pagekey = null]);
class Couchbase_QueryResultPage extends Couchbase_QueryResult {
var $page_id;
var $next_page_id;
var $rows
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment