MCPcopy Create free account
hub / github.com/dataform-co/dataform / prepareQueryOptions

Method prepareQueryOptions

cli/api/dbadapters/bigquery.ts:382–399  ·  view source on GitHub ↗
(
    query: string,
    rowLimit?: number,
    bigqueryOptions?: IBigQueryExecutionOptions,
    params?: { [name: string]: any }
  )

Source from the content-addressed store, hash-verified

380 }
381
382 private prepareQueryOptions(
383 query: string,
384 rowLimit?: number,
385 bigqueryOptions?: IBigQueryExecutionOptions,
386 params?: { [name: string]: any }
387 ) {
388 return {
389 query,
390 useLegacySql: false,
391 jobPrefix: "dataform-" + (bigqueryOptions?.jobPrefix ? `${bigqueryOptions.jobPrefix}-` : ""),
392 location: bigqueryOptions?.location,
393 maxResults: rowLimit,
394 labels: bigqueryOptions?.labels,
395 dryRun: bigqueryOptions?.dryRun,
396 reservation: bigqueryOptions?.reservation,
397 params
398 };
399 }
400
401 private async createQueryJob(
402 query: string,

Callers 2

executeRawMethod · 0.95
createQueryJobMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected