Allows you can execute multiple statements in a batch to update/insert several rows atomically even in different column families.
Allows you can execute multiple statements in a batch to update/insert several rows atomically even in different column families.
the given array of queries
the given query options
the callback function
client.batch(queries, { prepare: true }, function(err) { ... })
When using #eachRow() and #stream() methods, the driver parses each row as soon as it is received, yielding rows without buffering them.
When using #eachRow() and #stream() methods, the driver parses each row as soon as it is received, yielding rows without buffering them.
the given query
the given query parameters
the callback function
client.eachRow('SELECT time, val FROM temperature WHERE station_id=', ['abc'], function(n, row) { ... })
When using #eachRow() and #stream() methods, the driver parses each row as soon as it is received, yielding rows without buffering them.
When using #eachRow() and #stream() methods, the driver parses each row as soon as it is received, yielding rows without buffering them.
the given query
the given query parameters
the optional query options
the callback function
the callback for the final block of results
client.eachRow('SELECT time, val FROM temperature WHERE station_id=', ['abc'], function(n, row) { ... })
When using #eachRow() and #stream() methods, the driver parses each row as soon as it is received, yielding rows without buffering them.
When using #eachRow() and #stream() methods, the driver parses each row as soon as it is received, yielding rows without buffering them.
the given query
the given query parameters
the optional query options
the callback function
client.eachRow('SELECT time, val FROM temperature WHERE station_id=', ['abc'], function(n, row) { ... })
Executes the update statement and returns the error to the callback function
Executes the update statement and returns the error to the callback function
the given update statement
the given query parameters
the optional update options
the callback function
client.execute(query, params, { prepare: true }, function(err) { ... })
Executes the query and returns the error or result to the callback function
Executes the query and returns the error or result to the callback function
the given query
the given query parameters
the callback function
client.execute(query, ['guy'], function(err, result) { ... })
Executes the update statement and returns the error to the callback function
Executes the update statement and returns the error to the callback function
the given query statement
the callback function
client.execute(query, params, { prepare: true }, function(err) { ... })
Returns the metadata
Returns the metadata
the metadata
The #stream() method works in the same way as #eachRow() but instead of callback it returns a Readable Streams2 object in objectMode that emits instances of Row.
The #stream() method works in the same way as #eachRow() but instead of callback it returns a Readable Streams2 object in objectMode that emits instances of Row. It can be piped downstream and provides automatic pause/resume logic (it buffers when not read).
the given query
the given query parameters
a Readable
client.stream('SELECT time, val FROM temperature WHERE station_id=', ['abc'])
Cassandra Client