Repository URL to install this package:
|
Version:
3.2.0 ▾
|
| .. |
| README.md |
The latest version of the driver supports any Cassandra version greater than 1.2.
It supports CQL version 3.
Use the Uuid and TimeUuid classes inside the types module.
Normally you should use one Client instance per application. You should share that instance between modules within
your application.
No, only call client.shutdown() once in your application's lifetime.
To provide a dynamic list of values in a single parameter, use the IN operator followed by the question mark
placeholder without parenthesis in the query. The parameter containing the list of values should be of an instance of
Array.
For example:
const query = 'SELECT * FROM table1 WHERE key1 = ? AND key2 IN ?'; const key1 = 'param1'; const allKeys2 = [ 'val1', 'val2', 'val3' ]; client.execute(query, [ key1, allKeys2 ], { prepare: true });