ScyllaDB University Live | Free Virtual Training Event
Learn more
ScyllaDB Documentation Logo Documentation
  • Deployments
    • Cloud
    • Server
  • Tools
    • ScyllaDB Manager
    • ScyllaDB Monitoring Stack
    • ScyllaDB Operator
  • Drivers
    • CQL Drivers
    • DynamoDB Drivers
    • Supported Driver Versions
  • Resources
    • ScyllaDB University
    • Community Forum
    • Tutorials
Install
Search Ask AI
ScyllaDB Docs ScyllaDB Node.js Driver API Reference Classes ExecutionOptions
For AI agents: a documentation index is available at https://nodejs-rs-driver.docs.scylladb.com/main/llms.txt. A Markdown version of this page is at https://nodejs-rs-driver.docs.scylladb.com/main/api/ExecutionOptions.md.

Caution

You're viewing documentation for an unstable version of ScyllaDB Node.js Driver. Switch to the latest stable version.

ExecutionOptions¶

ExecutionOptions()

A base class that represents a wrapper around the user provided query options with getter methods and proper default values.

Note that getter methods might return undefined when not set on the query options or default Client options.

Constructor¶

new ExecutionOptions()

Creates a new instance of ExecutionOptions.

Source

execution-options.js, line 19

Methods¶

(abstract) getCaptureStackTrace() → {Boolean}

Determines if the stack trace before the query execution should be maintained.

Source

execution-options.js, line 67

Returns:
Type
Boolean

(abstract) getConsistency() → {Number}

Gets the Consistency level to be used for the execution.

Source

execution-options.js, line 74

Returns:
Type
Number

(abstract) getCustomPayload() → {Object}

Key-value payload to be passed to the server. On the server side, implementations of QueryHandler can use this data.

Source

execution-options.js, line 82

Returns:
Type
Object

(abstract) getFetchSize() → {Number}

Gets the amount of rows to retrieve per page.

Source

execution-options.js, line 89

Returns:
Type
Number

getFixedHost() → {Host}

When a fixed host is set on the query options and the query plan for the load-balancing policy is not used, it gets the host that should handle the query.

Source

execution-options.js, line 96

Returns:
Type
Host

(abstract) getHints() → {Array<ColumnInfo>|Array<Array<ColumnInfo>>|undefined}

Gets the type hints for parameters given in the query, ordered as for the parameters.

Source

execution-options.js, line 103

Returns:
Type
Array<ColumnInfo> | Array<Array<ColumnInfo>> | undefined

(abstract) getKeyspace() → {String}

Gets the keyspace for the query when set at query options level.

Note that this method will return undefined when the keyspace is not set at query options level. It will only return the keyspace name when the user provided a different keyspace than the current Client keyspace.

Source

execution-options.js, line 161

Returns:
Type
String

getLoadBalancingPolicy() → {LoadBalancingPolicy}

Gets the load balancing policy used for this execution.

Source

execution-options.js, line 167

Returns:

A LoadBalancingPolicy instance, it can't be undefined.

Type
LoadBalancingPolicy

(abstract) getPageState() → {Buffer}

Gets the Buffer representing the paging state.

Source

execution-options.js, line 181

Returns:
Type
Buffer

getRawQueryOptions() → {QueryOptions}

Gets the query options as provided to the execution method without setting the default values.

Source

execution-options.js, line 194

Returns:
Type
QueryOptions

(abstract) getReadTimeout() → {Number}

Gets the timeout in milliseconds to be used for the execution per coordinator.

A value of 0 disables client side read timeout for the execution. Default: undefined.

Source

execution-options.js, line 203

Returns:
Type
Number

(abstract) getRetryPolicy() → {RetryPolicy}

Gets the retry policy to be used.

Source

execution-options.js, line 210

Returns:

A RetryPolicy instance, it can't be undefined.

Type
RetryPolicy

(abstract) getRoutingKey() → {Buffer|Array<Buffer>}

Gets the partition key(s) to determine which coordinator should be used for the query.

Source

execution-options.js, line 239

Returns:
Type
Buffer | Array<Buffer>

(abstract) getSerialConsistency() → {Number}

Gets the the consistency level to be used for the serial phase of conditional updates.

Source

execution-options.js, line 254

Returns:
Type
Number

(abstract) getTimestamp() → {Number|Long|undefined|null}

Gets the provided timestamp for the execution in microseconds from the unix epoch (00:00:00, January 1st, 1970).

When a timestamp generator is used, this method returns undefined.

Source

execution-options.js, line 263

Returns:
Type
Number | Long | undefined | null

(abstract) isAutoPage() → {Boolean}

Determines whether the driver must retrieve the following result pages automatically.

This setting is only considered by the Client#eachRow() method.

Source

execution-options.js, line 112

Returns:
Type
Boolean

(abstract) isBatchCounter() → {Boolean}

Determines whether its a counter batch. Only valid for Client#batch(), it will be ignored by other methods.

Source

execution-options.js, line 120

Returns:

A Boolean value, it can't be undefined.

Type
Boolean

(abstract) isBatchLogged() → {Boolean}

Determines whether the batch should be written to the batchlog. Only valid for Client#batch(), it will be ignored by other methods.

Source

execution-options.js, line 128

Returns:

A Boolean value, it can't be undefined.

Type
Boolean

(abstract) isIdempotent() → {Boolean}

Determines whether the query can be applied multiple times without changing the result beyond the initial application.

Source

execution-options.js, line 136

Returns:
Type
Boolean

(abstract) isPaged() → {boolean}

Determines if the query should be paged.

Source

execution-options.js, line 174

Returns:
Type
boolean

(abstract) isPrepared() → {Boolean}

Determines whether the query must be prepared beforehand.

Source

execution-options.js, line 143

Returns:

A Boolean value, it can't be undefined.

Type
Boolean

(abstract) isQueryTracing() → {Boolean}

Determines whether query tracing is enabled for the execution.

Source

execution-options.js, line 150

Returns:
Type
Boolean

Was this page helpful?

PREVIOUS
EncoderMembers
NEXT
ExecutionProfile
  • Create an issue
  • Edit this page

On this page

  • ExecutionOptions
    • Constructor
    • Methods
ScyllaDB Node.js Driver
Search Ask AI
  • main
    • main
    • v0.6.1
  • Getting Started
  • Statements
    • Executing CQL Statements - Best Practices
    • Unprepared Statements
    • Batch Statements
    • Parameterized queries
  • Fetching Large Result Sets
  • Logging
  • Policies
    • Load Balancing
    • Retry Policies
  • Authentication
  • Shutdown
  • Migration Guide
  • API Reference
    • Modules
      • auth
        • AuthProvider
        • Authenticator
        • PlainTextAuthProvider
      • concurrent
      • datastax
        • graph
        • search
      • errors
        • ArgumentError
        • AuthenticationError
        • BusyConnectionError
        • DriverInternalError
        • NoHostAvailableError
        • NotSupportedError
        • OperationTimedOutError
        • ResponseError
      • geometry
      • mapping
        • DefaultTableMappings
        • Mapper
        • ModelBatchItem
        • ModelMapper
        • Result
        • UnderscoreCqlToCamelCaseMappings
        • TableMappings
      • metadata
        • Aggregate
        • ClientState
        • ColumnMetadata
        • Index
        • KeyspaceMetadata
        • MaterializedView
        • Metadata
        • SchemaFunction
        • Strategy
        • TableMetadata
        • Udt
        • UdtField
      • metrics
        • DefaultMetrics
        • ClientMetrics
      • policies
        • addressResolution
          • AddressTranslator
          • EC2MultiRegionTranslator
          • MappingAddressTranslator
        • loadBalancing
          • AllowListPolicy
          • DCAwareRoundRobinPolicy
          • DefaultLoadBalancingPolicy
          • LegacyDefaultLoadBalancingPolicy
          • LoadBalancingConfig
          • LoadBalancingPolicy
          • RoundRobinPolicy
          • TokenAwarePolicy
        • reconnection
          • ConstantReconnectionPolicy
          • ExponentialReconnectionPolicy
          • ReconnectionPolicy
        • retry
          • FallthroughRetryPolicy
          • RetryPolicy
        • speculativeExecution
          • ConstantSpeculativeExecutionPolicy
          • NoSpeculativeExecutionPolicy
          • SpeculativeExecutionPolicy
        • timestampGeneration
          • MonotonicTimestampGenerator
          • TimestampGenerator
      • tracker
        • RequestLogger
        • RequestTracker
      • types
        • BigDecimal
        • Duration
        • InetAddress
        • Integer
        • LocalDate
        • Long
        • ResultSet
        • ResultStream
        • Row
        • TimeUuid
        • Tuple
        • Uuid
        • Vector
    • Classes
      • AddressResolver
      • ByteOrderedToken
      • Client
      • ColumnInfo
      • DateRange
      • DateRangeBound
      • DseGssapiAuthProvider
      • DsePlainTextAuthProvider
      • Edge
      • Element
      • Encoder
      • EncoderMembers
      • ExecutionOptions
      • ExecutionProfile
      • FrameReader
      • GraphResultSet
      • HashSet
      • LineString
      • Murmur3Token
      • Path
      • Point
      • Polygon
      • Property
      • RandomToken
      • SslOptions
      • Token
      • TokenRange
      • Vertex
      • VertexProperty
    • Interfaces
    • Events
    • Global Functions and Constants
Docs Tutorials University Contact Us About Us
© 2026 ScyllaDB | Terms of Service | Privacy Policy | ScyllaDB, and ScyllaDB Cloud, are registered trademarks of ScyllaDB, Inc.
Last updated on 10 Aug 2026.
Powered by Sphinx 9.1.0 & ScyllaDB Theme 1.9.3