Build a BigQueryInt object. For long integers, a string can be provided.
Inheritance
Number > BigQueryIntPackage
@google-cloud/bigqueryExample
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
Properties
type
type
:
string
;
typeCastFunction
typeCastFunction
?:
Function
;
value
value
:
string
;
Methods
toJSON()
toJSON
()
:
Json
;
valueOf()
valueOf
()
:
any
;
Returns
Type
Description
any