Class BigQueryInt (8.0.0)

Build a BigQueryInt object. For long integers, a string can be provided.

Inheritance

Number > BigQueryInt

Package

@google-cloud/bigquery

Example

  const 
  
 { 
 BigQuery 
 } 
  
 = 
  
 require 
 ( 
 ' @google-cloud/bigquery 
' 
 ); 
 const 
  
 bigquery 
  
 = 
  
 new 
  
  BigQuery 
 
 (); 
 const 
  
 anInt 
  
 = 
  
 bigquery 
 . 
  int 
 
 ( 
 7 
 ); 
 

Constructors

(constructor)(value, typeCastOptions)

  constructor 
 ( 
 value 
 : 
  
 string 
  
 | 
  
 number 
  
 | 
  
 IntegerTypeCastValue 
 , 
  
 typeCastOptions 
 ?: 
  
 IntegerTypeCastOptions 
 ); 
 

Constructs a new instance of the BigQueryInt class

Parameters
Name
Description
value
string | number | IntegerTypeCastValue
typeCastOptions

Properties

type

  type 
 : 
  
 string 
 ; 
 

typeCastFunction

  typeCastFunction 
 ?: 
  
 Function 
 ; 
 

value

  value 
 : 
  
 string 
 ; 
 

Methods

toJSON()

  toJSON 
 () 
 : 
  
 Json 
 ; 
 
Returns
Type
Description

valueOf()

  valueOf 
 () 
 : 
  
 any 
 ; 
 
Returns
Type
Description
any
Create a Mobile Website
View Site in Mobile | Classic
Share by: