Skip to content

Commit

Permalink
chore(firestore-bigquery-export): remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
cabljac committed Oct 23, 2023
1 parent 0241872 commit 65eb14d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
19 changes: 0 additions & 19 deletions firestore-bigquery-export/scripts/import/src/run-multi-thread.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ import { pool } from "workerpool";
import * as logs from "./logs";
import { CliConfig } from "./types";

// import {
// ChangeType,
// FirestoreBigQueryEventHistoryTracker,
// FirestoreDocumentChangeEvent,
// } from "@firebaseextensions/firestore-bigquery-change-tracker";

/**
* Import data from a collection group in parallel using workers.
*/
Expand Down Expand Up @@ -96,16 +90,3 @@ export async function runMultiThread(config: CliConfig): Promise<number> {

return Promise.resolve(total);
}

// export async function runMultiThread(
// config: CliConfig,
// dataSink: FirestoreBigQueryEventHistoryTracker
// ): Promise<number> {
// const {
// datasetId,
// datasetLocation,
// rawChangeLogName,
// } = config;

// return processCollectionGroup(config)
// }
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,10 @@ import * as firebase from "firebase-admin";
import * as fs from "fs";
import * as util from "util";

import { resolveWildcardIds } from "./config";
import { getRowsFromDocs } from "./helper";
import { CliConfig } from "./types";

const write = util.promisify(fs.writeFile);

const FIRESTORE_DEFAULT_DATABASE = "(default)";

export function getQuery(
config: CliConfig,
cursor?: firebase.firestore.DocumentSnapshot<firebase.firestore.DocumentData>
Expand Down

0 comments on commit 65eb14d

Please sign in to comment.