Was this page helpful?
Caution
You're viewing documentation for an unstable version of ScyllaDB Node.js Driver. Switch to the latest stable version.
ExecutionProfile¶
ExecutionProfile(name, options)
Represents a set configurations to be used in a statement execution to be used for a single Client instance.
An ExecutionProfile instance should not be shared across different Client instances.
Constructor¶
new ExecutionProfile(name, options)
Parameters:
| Name | Type | Description |
|---|---|---|
name |
Name of the execution profile.
Use |
|
options |
Profile options, when any of the options is not specified the Client will the use the ones defined in the default profile. See ClientOptions for more details. |
Example
const { Client, ExecutionProfile } = require('cassandra-driver');
const client = new Client({
contactPoints: ['host1', 'host2'],
profiles: [
new ExecutionProfile('metrics-oltp', {
consistency: consistency.localQuorum,
retry: myRetryPolicy
})
]
});
client.execute(query, params, { executionProfile: 'metrics-oltp' }, callback);Members¶
consistency
Consistency level.
loadBalancing
Load-balancing policy.
name
Name of the execution profile.
readTimeout
Client read timeout.
retry
Retry policy.
serialConsistency
Serial consistency level.