Interface QueryOptions

interface QueryOptions {
    abortSignal?: AbortSignal;
    clientContextId?: string;
    deserializer?: Deserializer;
    maxRetries?: number;
    namedParameters?: {
        [key: string]: any;
    };
    positionalParameters?: any[];
    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.

clientContextId?: string

The returned client context id for this query.

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.

maxRetries?: number

Specifies the maximum number of retries for this query. If unset, defaults to the cluster-level maxRetries.

Volatile: This API is subject to change at any time.

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.

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.