MCPcopy Create free account
hub / github.com/firebase/firebase-tools / constructor

Method constructor

src/database/import.ts:128–137  ·  view source on GitHub ↗
(
    private dbUrl: URL,
    private inStream: stream.Readable,
    private dataPath: string,
    private payloadSize: number,
    concurrency: number,
  )

Source from the content-addressed store, hash-verified

126 nonFatalRetryTimeout = 1000; // To be overriden in tests
127
128 constructor(
129 private dbUrl: URL,
130 private inStream: stream.Readable,
131 private dataPath: string,
132 private payloadSize: number,
133 concurrency: number,
134 ) {
135 this.client = new Client({ urlPrefix: dbUrl.origin, auth: true });
136 this.limit = pLimit(concurrency);
137 }
138
139 /**
140 * Writes the chunked data to RTDB. Any existing data at the specified location will be overwritten.

Callers

nothing calls this directly

Calls 1

pLimitFunction · 0.90

Tested by

no test coverage detected