firebase-authentication-to-bigquery-export
Version:
An automatic tool for copying and converting Firestore data to BigQuery.
38 lines (37 loc) • 1.12 kB
TypeScript
import * as BigQuery from '@google-cloud/bigquery';
/**
* Connecting to the given Firebase project.
*
* @param {JSON} serviceAccountFile
* @public
*/
export declare function setFirebaseConfig(serviceAccountFile: any): void;
/**
* Connecting to the given BigQuery project.
*
* @param {JSON} serviceAccountFile
* @public
*/
export declare function setBigQueryConfig(serviceAccountFile: any): void;
/**
* Creating a BigQuery dataset.
* Creating the tables with the correct schema if the table doesn't already exist.
*
* @public
*/
export declare function createBigQueryTables(): Promise<BigQuery.TableResponse | undefined>;
/**
* Deletes all the given tables.
*
* @public
*/
export declare function deleteBigQueryTables(): Promise<[import("teeny-request").Response<any>] | undefined>;
/**
* Runs through the given QuerySnapshot and converts and copies it to an array.
* Inserts the array into a BigQuery table with the given collectionName.
*
* @param {boolean} [verbose = false]
* @returns {Promise<Number>}
* @public
*/
export declare function copyToBigQuery(verbose?: boolean): Promise<void>;