simple-bigquery-stream

1.0.2 • Public • Published

Simple BigQuery Stream implementation for Node.js

Bare bones stream to push your data to Google's Big Query Service

Installation

npm install simple-bigquery-stream

Create a google service account in the Google Developer Console and download the JSON key

Example

var createStream = require("simple-bigquery-stream");
 
var stream = createStream({
    projectId: "your-project-id",
    datasetId: "testing",
    tableId: "stream",
    authJSON: require("./google-key.json") // your JSON key
});
 
stream.write({ field01: "bar", field02: "foo"});
stream.write({ field01: "foo2", field02: "bar2"});
stream.end();
 

Running test (Locally)

NOTE: Tests aren't intended to be run on CI server

STREAM_PROJECT=<gcloud project> make

Dependencies (2)

Dev Dependencies (6)

Package Sidebar

Install

npm i simple-bigquery-stream

Weekly Downloads

4

Version

1.0.2

License

MIT

Last publish

Collaborators

  • iamat_user