Class Model (5.8.0)

Model objects are returned by methods such as and .

Inheritance

common. ServiceObject > Model

Package

@google-cloud/bigquery!

Constructors

(constructor)(dataset, id)

  constructor 
 ( 
 dataset 
 : 
  
 Dataset 
 , 
  
 id 
 : 
  
 string 
 ); 
 

Constructs a new instance of the Model class

Parameters
Name Description
dataset Dataset
id string

Properties

bigQuery

  bigQuery 
 : 
  
 BigQuery 
 ; 
 
Property Value
Type Description
BigQuery

dataset

  dataset 
 : 
  
 Dataset 
 ; 
 
Property Value
Type Description
Dataset

Methods

createExtractJob(destination, options)

  createExtractJob 
 ( 
 destination 
 : 
  
 string 
  
 | 
  
 File 
 , 
  
 options 
 ?: 
  
 CreateExtractJobOptions 
 ) 
 : 
  
 Promise<JobResponse> 
 ; 
 
Parameters
Name Description
destination string | File
options CreateExtractJobOptions
Returns
Type Description
Promise < JobResponse >

createExtractJob(destination, options, callback)

  createExtractJob 
 ( 
 destination 
 : 
  
 string 
  
 | 
  
 File 
 , 
  
 options 
 : 
  
 CreateExtractJobOptions 
 , 
  
 callback 
 : 
  
 JobCallback 
 ) 
 : 
  
 void 
 ; 
 
Parameters
Name Description
destination string | File
options CreateExtractJobOptions
callback JobCallback
Returns
Type Description
void

createExtractJob(destination, callback)

  createExtractJob 
 ( 
 destination 
 : 
  
 string 
  
 | 
  
 File 
 , 
  
 callback 
 : 
  
 JobCallback 
 ) 
 : 
  
 void 
 ; 
 
Parameters
Name Description
destination string | File
callback JobCallback
Returns
Type Description
void

extract(destination, options)

  extract 
 ( 
 destination 
 : 
  
 string 
  
 | 
  
 File 
 , 
  
 options 
 ?: 
  
 CreateExtractJobOptions 
 ) 
 : 
  
 Promise<JobMetadataResponse> 
 ; 
 
Parameters
Name Description
destination string | File
options CreateExtractJobOptions
Returns
Type Description
Promise < JobMetadataResponse >

extract(destination, options, callback)

  extract 
 ( 
 destination 
 : 
  
 string 
  
 | 
  
 File 
 , 
  
 options 
 : 
  
 CreateExtractJobOptions 
 , 
  
 callback 
 ?: 
  
 JobMetadataCallback 
 ) 
 : 
  
 void 
 ; 
 
Parameters
Name Description
destination string | File
options CreateExtractJobOptions
callback JobMetadataCallback
Returns
Type Description
void

extract(destination, callback)

  extract 
 ( 
 destination 
 : 
  
 string 
  
 | 
  
 File 
 , 
  
 callback 
 ?: 
  
 JobMetadataCallback 
 ) 
 : 
  
 void 
 ; 
 
Parameters
Name Description
destination string | File
callback JobMetadataCallback
Returns
Type Description
void
Design a Mobile Site
View Site in Mobile | Classic
Share by: