Skip to content
This repository was archived by the owner on May 3, 2022. It is now read-only.

Insert Builder

Otávio Santana edited this page Feb 13, 2014 · 5 revisions

The class Insert Builder is a really simple way to update some columns with options:

Options

  • withConsistencyLevel: Sets the consistency level for the query
  • withTimeStamp: Option to set the timestamp for a modification query.
  • withTtl: Option to set the ttl for a modification query.
  • ifNotExists: Sets the 'IF NOT EXISTS' option for this INSERT statement.

Insert Values

  • value: Adds a column/value pair to the values inserted by this INSERT statement.
  • values: Adds a column/value pair to the values inserted by this INSERT statement.

Run

  • execute: execute the query.
  • executeAsync: insert the provided query asynchronously.
  • executeAsync(asyncCallBack): execute the process asynchronous with asyncCallBack.

Examples

To know more: Insert Builder

Clone this wiki locally