CouchbaseViewQuery

Represents a view query to be executed against a Couchbase bucket.

package

Couchbase

Methods

Creates a new Couchbase ViewQuery instance for performing a view query.

from(mixed $ddoc, mixed $name) : \_CouchbaseDefaultViewQuery
static

Arguments

$ddoc

mixed

The name of the design document to query.

$name

mixed

The name of the view to query.

Response

\_CouchbaseDefaultViewQuery

Creates a new Couchbase ViewQuery instance for performing a spatial query.

fromSpatial(mixed $ddoc, mixed $name) : \_CouchbaseSpatialViewQuery
static

Arguments

$ddoc

mixed

The name of the design document to query.

$name

mixed

The name of the view to query.

Response

\_CouchbaseSpatialViewQuery

Specifies the mode of updating to perform before and after executing this query.

stale(mixed $stale) : $this
throws

Arguments

$stale

mixed

Response

$this

Skips a number of records from the beginning of the result set.

skip(mixed $skip) : $this

Arguments

$skip

mixed

Response

$this

Limits the result set to a restricted number of results.

limit(mixed $limit) : $this

Arguments

$limit

mixed

Response

$this

Specifies custom options to pass to the server. Note that these options are expected to be already encoded.

custom(mixed $opts) : $this

Arguments

$opts

mixed

Response

$this

Constants

UPDATE_BEFORE

UPDATE_BEFORE

UPDATE_NONE

UPDATE_NONE

UPDATE_AFTER

UPDATE_AFTER

ORDER_ASCENDING

ORDER_ASCENDING

ORDER_DESCENDING

ORDER_DESCENDING