API Docs for: 2.2.2
Show:

Query.Builder Class

Module: TS

A builder for constructing Query instances.

Rather than having to manually construct the options and instantiating a Query directly, this builder may be used.

var storeValue = new Query.Builder()
     .withTable('table')
     .withColumns(columns)
     .withRows(rows)
     .build();

Constructor

Query.Builder

()

Item Index

Methods

build

() Query

Construct a Query instance.

Returns:

Query:

a Query instance

withCallback

(
  • callback
)
chainable

Set the callback to be executed when the operation completes.

Parameters:

  • callback Function

    The allback to be executed when the operation completes.

    • err String

      An error message. Will be null if no error.

    • response Object

      The response from Riak

withQuery

(
  • query
)
chainable

Set the query text.

Parameters:

  • query String

    the timeseries query