Pull request Compare This branch is 6 commits ahead, 143 commits behind Node-8.
Type Name Latest commit message Commit time
Failed to load latest commit information.
functions Updating bigquery-import to firebase-functions v1 syntax Aug 7, 2018
README.md Updating remaning samples to 0.5.0 Feb 21, 2017


Import Data to Big Query

This template shows how to copy data from the Realtime Database (such as logs being written there) to Google Cloud's BigQuery.

Function Code

See file functions/index.js for the code.

The dependencies are listed in functions/package.json.

Sample Database Structure

As an example we'll be using a simple logs database structure:

            text: "User signed in."
            text: "Error: Could not connect to Database"

Setting up the sample

Set the bigquery.datasetName and bigquery.tableName Google Cloud environment variables to match the Dataset name and the Table name where you want the logs written to. For this use:

firebase functions:config:set bigquery.datasetName="bar" bigquery.tableName="baz"