* 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)
| 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); |
no outgoing calls
no test coverage detected