BigQueryInt

BigQueryInt

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

Constructor

new BigQueryInt(value, typeCastOptionsopt)

Parameters:
Name Type Attributes Description
value string | number | IntegerTypeCastValue

The 'INT64' value.

typeCastOptions object <optional>

Configuration to convert values of 'INT64' type to a custom value. Must provide an integerTypeCastFunction to handle conversion.

Properties
Name Type Attributes Description
integerTypeCastFunction function

A custom user provided function to convert value.

fields string | Array.<string> <optional>

Schema field names to be converted using integerTypeCastFunction.

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