Class Model (5.6.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
NameDescription
dataset Dataset
id string

Properties

bigQuery

bigQuery: BigQuery;
Property Value
TypeDescription
BigQuery

dataset

dataset: Dataset;
Property Value
TypeDescription
Dataset

Methods

createExtractJob(destination, options)

createExtractJob(destination: string | File, options?: CreateExtractJobOptions): Promise<JobResponse>;
Parameters
NameDescription
destination string | File
options CreateExtractJobOptions
Returns
TypeDescription
Promise<JobResponse>

createExtractJob(destination, options, callback)

createExtractJob(destination: string | File, options: CreateExtractJobOptions, callback: JobCallback): void;
Parameters
NameDescription
destination string | File
options CreateExtractJobOptions
callback JobCallback
Returns
TypeDescription
void

createExtractJob(destination, callback)

createExtractJob(destination: string | File, callback: JobCallback): void;
Parameters
NameDescription
destination string | File
callback JobCallback
Returns
TypeDescription
void

extract(destination, options)

extract(destination: string | File, options?: CreateExtractJobOptions): Promise<JobMetadataResponse>;
Parameters
NameDescription
destination string | File
options CreateExtractJobOptions
Returns
TypeDescription
Promise<JobMetadataResponse>

extract(destination, options, callback)

extract(destination: string | File, options: CreateExtractJobOptions, callback?: JobMetadataCallback): void;
Parameters
NameDescription
destination string | File
options CreateExtractJobOptions
callback JobMetadataCallback
Returns
TypeDescription
void

extract(destination, callback)

extract(destination: string | File, callback?: JobMetadataCallback): void;
Parameters
NameDescription
destination string | File
callback JobMetadataCallback
Returns
TypeDescription
void