Socket
Socket
Sign inDemoInstall

@mondomob/gae-js-bigquery

Package Overview
Dependencies
Maintainers
8
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mondomob/gae-js-bigquery

Tools for Google BigQuery


Version published
Weekly downloads
47
increased by1466.67%
Maintainers
8
Weekly downloads
 
Created
Source

GAE JS BIGQUERY

Simplifies BigQuery client initialisation and common BigQuery operations.

Installation

npm install @mondomob/gae-js-bigquery

Quick Start

Using BigQuery Provider

To have a global BigQuery instance available to your entire application, initialise the bigQueryProvider. This will initialise the BigQuery client based on your current configuration. The instance can then be recalled anywhere within your application as required.

// On app startup
bigQueryProvider.init();

// Elsewhere in the app
const bigQuery = bigQueryProvider.get();

Manual connect to BigQuery

To manage your own BigQuery instances, use connectBigQuery to connect to BigQuery based on your current application configuration.

class CustomBigQueryService {
  private readonly bigQuery: BigQuery;

  constructor() {
    this.bigQuery = connectBigQuery()
  }
}

Edit configuration

No configuration is required if you are happy with the default conventions.

The following options are available under the bigQuery namespace.

PropertyDescriptionRequired
projectIdthe BigQuery projectId to connect to. Will default to the application's project id.N

e.g.

{
  "bigQuery": {
    "projectId": "my-bigquery-project"
  }
}

FAQs

Package last updated on 07 Jun 2023

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