Class BigQueryInt (6.2.1)

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
NameDescription
value string | number | IntegerTypeCastValue
typeCastOptions IntegerTypeCastOptions

Properties

type

type: string;

typeCastFunction

typeCastFunction?: Function;

value

value: string;

Methods

toJSON()

toJSON(): Json;
Returns
TypeDescription
Json

valueOf()

valueOf(): any;
Returns
TypeDescription
any