Skip to content

Commit 43fda47

Browse files
committed
add private
1 parent 6173e78 commit 43fda47

File tree

1 file changed

+5
-5
lines changed
  • firestore-bigquery-export/firestore-bigquery-change-tracker/src/bigquery

1 file changed

+5
-5
lines changed

firestore-bigquery-export/firestore-bigquery-change-tracker/src/bigquery/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export class FirestoreBigQueryEventHistoryTracker implements FirestoreEventHisto
6565
/**
6666
* Inserts rows of data into the BigQuery raw change log table.
6767
*/
68-
async insertData(rows: bigquery.RowMetadata[]) {
68+
private async insertData(rows: bigquery.RowMetadata[]) {
6969
try {
7070
const dataset = this.bq.dataset(this.config.datasetId);
7171
const table = dataset.table(this.rawChangeLogTableName());
@@ -83,7 +83,7 @@ export class FirestoreBigQueryEventHistoryTracker implements FirestoreEventHisto
8383
* Creates the BigQuery resources with the expected schema for {@link FirestoreEventHistoryTracker}.
8484
* After the first invokation, it skips initialization assuming these resources are still there.
8585
*/
86-
async initialize() {
86+
private async initialize() {
8787
if (this.initialized) {
8888
return;
8989
}
@@ -96,7 +96,7 @@ export class FirestoreBigQueryEventHistoryTracker implements FirestoreEventHisto
9696
/**
9797
* Creates the specified dataset if it doesn't already exists.
9898
*/
99-
async initializeDataset() {
99+
private async initializeDataset() {
100100
const dataset = this.bq.dataset(this.config.datasetId);
101101
const [datasetExists] = await dataset.exists();
102102
if (datasetExists) {
@@ -113,7 +113,7 @@ export class FirestoreBigQueryEventHistoryTracker implements FirestoreEventHisto
113113
* Creates the raw change log table if it doesn't already exist.
114114
* TODO: Validate that the BigQuery schema is correct if the table does exist,
115115
*/
116-
async initializeRawChangeLogTable() {
116+
private async initializeRawChangeLogTable() {
117117
const changelogName = this.rawChangeLogTableName();
118118
const dataset = this.bq.dataset(this.config.datasetId);
119119
const table = dataset.table(changelogName);
@@ -138,7 +138,7 @@ export class FirestoreBigQueryEventHistoryTracker implements FirestoreEventHisto
138138
* Creates the latest snapshot view, which returns only latest operations
139139
* of all existing documents over the raw change log table.
140140
*/
141-
async initializeLatestView() {
141+
private async initializeLatestView() {
142142
const dataset = this.bq.dataset(this.config.datasetId);
143143
const view = dataset.table(this.rawLatestView());
144144
const [viewExists] = await view.exists();

0 commit comments

Comments
 (0)