MCPcopy Create free account
hub / github.com/apache/cassandra-nodejs-driver / create

Method create

lib/execution-options.js:427–433  ·  view source on GitHub ↗

* Creates a new instance ExecutionOptions, based on the query options. * @param {QueryOptions|null} queryOptions * @param {Client} client * @param {Function|null} [rowCallback] * @ignore * @return {ExecutionOptions}

(queryOptions, client, rowCallback)

Source from the content-addressed store, hash-verified

425 * @return {ExecutionOptions}
426 */
427 static create(queryOptions, client, rowCallback) {
428 if (!queryOptions || typeof queryOptions === 'function') {
429 // queryOptions can be null/undefined and could be of type function when is an optional parameter
430 queryOptions = utils.emptyObject;
431 }
432 return new DefaultExecutionOptions(queryOptions, client, rowCallback);
433 }
434
435 getCaptureStackTrace() {
436 return ifUndefined(this._queryOptions.captureStackTrace, this._defaultQueryOptions.captureStackTrace);

Callers 5

client.jsFile · 0.80
getExecuteRequestFunction · 0.80
getQueryRequestFunction · 0.80
getBatchRequestFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected