-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for microseconds precision (#1192)
Parses timestamps from the backend ( that arrives as a float64 ) using the [@google-cloud/precise-date](https://www.npmjs.com/package/@google-cloud/precise-date) lib to support microsecond resolution. Example output: ``` const bigquery = new BigQuery(); const [rows] = await bigquery.query({ query: 'SELECT TIMESTAMP("2014-09-27 12:30:00.123456Z")', }); console.log(JSON.stringify(rows)); // [{"f0_":{"value":"2014-09-27T12:30:00.123456000Z"}}] ``` Fixes #6
- Loading branch information
1 parent
c8fba1a
commit b5801a6
Showing
3 changed files
with
62 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters