Class: N1qlStringQuery

N1qlStringQuery

new N1qlStringQuery()

Class for holding a explicitly defined N1QL query string.

Since:
  • 2.0.0 (stability: uncommitted)

Extends

Methods

adhoc(adhoc) → {N1qlStringQuery}

Specifies whether this query is adhoc or should be prepared.

Parameters:
Name Type Description
adhoc boolean
Since:
  • 2.1.0 (stability: committed)
Returns:
Type
N1qlStringQuery

consistency(val) → {N1qlStringQuery}

Specify the consistency level for this query.

Parameters:
Name Type Description
val N1qlQuery.Consistency
Since:
  • 2.0.10 (stability: committed)
Returns:
Type
N1qlStringQuery

consistentWith(state)

Specifies a MutationState object to ensure this query is consistent with.

Parameters:
Name Type Description
state
Since:
  • 2.1.7 (stability: uncommitted)

toObject()

Returns the fully prepared object representation of this query.

toString()

Returns the fully prepared string representation of this query.