Class Routine (5.9.3)

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

Inheritance

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
Name Description
dataset Dataset
id string

Methods

  setMetadata 
 ( 
 metadata 
 : 
  
 RoutineMetadata 
 ) 
 : 
  
 Promise<SetMetadataResponse> 
 ; 
 
Parameter
Name Description
metadata RoutineMetadata
Returns
Type Description
Promise < SetMetadataResponse >
  setMetadata 
 ( 
 metadata 
 : 
  
 RoutineMetadata 
 , 
  
 callback 
 : 
  
 ResponseCallback 
 ) 
 : 
  
 void 
 ; 
 
Parameters
Name Description
metadata RoutineMetadata
callback ResponseCallback
Returns
Type Description
void
Design a Mobile Site
View Site in Mobile | Classic
Share by: