Interface QueryOptions

interface QueryOptions {
    abortSignal?: AbortSignal;
    deserializer?: Deserializer;
    namedParameters?: {
        [key: string]: any;
    };
    positionalParameters?: any[];
    priority?: boolean;
    raw?: {
        [key: string]: any;
    };
    readOnly?: boolean;
    scanConsistency?: QueryScanConsistency;
    timeout?: number;
}

Properties

abortSignal?: AbortSignal

Sets an abort signal for the query allowing the operation to be cancelled.

deserializer?: Deserializer

Sets the deserializer used by QueryResult.rows to convert query result rows into objects. If not specified, defaults to the cluster's default deserializer.

namedParameters?: {
    [key: string]: any;
}

Named values to be used for the placeholders within the query.

Type declaration

  • [key: string]: any
positionalParameters?: any[]

Positional values to be used for the placeholders within the query.

priority?: boolean

Indicates whether this query should be executed with a specific priority level.

raw?: {
    [key: string]: any;
}

Specifies any additional parameters which should be passed to the query engine when executing the query.

Type declaration

  • [key: string]: any
readOnly?: boolean

Indicates whether this query should be executed in read-only mode.

scanConsistency?: QueryScanConsistency

Specifies the consistency requirements when executing the query.

See

AnalyticsScanConsistency

timeout?: number

The timeout for this operation, represented in milliseconds.