Class Routine (7.0.0)

Routine objects are returned by methods such as , , and .

Inheritance

EventEmitter > ServiceObject > Routine

Package

@google-cloud/bigquery

Example


const {BigQuery} = require('@google-cloud/bigquery');
const bigquery = new BigQuery();
const dataset = bigquery.dataset('my-dataset');

const routine = dataset.routine('my_routine');

Constructors

(constructor)(dataset, id)

constructor(dataset: Dataset, id: string);

Constructs a new instance of the Routine class

Parameters
NameDescription
dataset Dataset
id string

Methods

setMetadata(metadata)

setMetadata(metadata: RoutineMetadata): Promise<SetMetadataResponse>;
Parameter
NameDescription
metadata RoutineMetadata
Returns
TypeDescription
Promise<SetMetadataResponse>

setMetadata(metadata, callback)

setMetadata(metadata: RoutineMetadata, callback: ResponseCallback): void;
Parameters
NameDescription
metadata RoutineMetadata
callback ResponseCallback
Returns
TypeDescription
void