Class: N1qlStringQuery

N1qlStringQuery

new N1qlStringQuery()

Class for holding a explicitly defined N1QL query string.

Since:
  • 2.0.0 (stability: committed)

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: committed)

pretty(pretty) → {N1qlStringQuery}

Specifies enable/disable formatting a query result

Parameters:
Name Type Description
pretty boolean
Since:
  • 4.5.1
Returns:
Type
N1qlStringQuery

toObject()

Returns the fully prepared object representation of this query.

toString()

Returns the fully prepared string representation of this query.