Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bigquery-model

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bigquery-model

Node.js abstraction layer to BigQuery tables

  • 0.3.0
  • unpublished
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

BigQuery Model

Node.js abstraction layer to BigQuery tables.

Features
  • Promise and callback interface;
  • Simple API.

Quick start

var bigquery = require('bigquery-model');

// set authentication properties
bigquery.auth({
  email: 'yo@gmail.com',
  key: 'pem-key'
});

var table = new bigquery.Table({
  projectId: 'my-project-42',
  datasetId: 'my-dataset',
  tableId: 'my-table',
  schema: {
    fields: [
      {name: 'first_name', type: 'string', mode: 'required'},
      {name: 'last_name', type: 'string', mode: 'required'},
      {name: 'address', type: 'record', fields: [
        {name: 'street', type: 'string'},
        {name: 'number', type: 'integer'},
        {name: 'area', type: 'string'},
      ]},
      {name: 'hobbies', type: 'string', mode: 'repeated'}
    ]
  }
});

return table.query('SELECT first_name, last_name FROM [my-table];')

For further information on how to use this library please refer to the API docs.

Installation

$ npm install bigquery-model
Requirements
  • Node.js 0.8+

Contribute

Source code contributions are most welcome. The following rules apply:

  1. JavaScript source code needs to follow the Airbnb Style Guide;
  2. Functions need to be well documented in API docs;
  3. Unit tests are necessary.

Support

If you are having issues with this library, please let us know.

License

MIT

Keywords

FAQs

Package last updated on 16 Sep 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc