CouchbaseN1qlQuery

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

package

Couchbase

Methods

Creates a new N1qlQuery instance directly from a N1QL DML.

fromString(mixed $str) : \CouchbaseN1qlQuery
static

Arguments

$str

mixed

Response

\CouchbaseN1qlQuery

Specify the consistency level for this query.

consistency(mixed $consistency) : $this
throws

Arguments

$consistency

mixed

Response

$this

Specify whether this query is a one-time query, or if it if it should be prepared.

adhoc(mixed $adhoc) : $this
throws

Arguments

$adhoc

mixed

Response

$this

Generates the N1QL object as it will be passed to the server.

toObject() : object

Response

object

Returns the string representation of this N1ql query (the statement).

toString() : string

Response

string

Constants

NOT_BOUNDED

NOT_BOUNDED

REQUEST_PLUS

REQUEST_PLUS

STATEMENT_PLUS

STATEMENT_PLUS