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

Function getDefaultDatabaseInstance

src/getDefaultDatabaseInstance.ts:8–11  ·  view source on GitHub ↗
(project: string)

Source from the content-addressed store, hash-verified

6 * @return The instance ID, empty if it doesn't exist.
7 */
8export async function getDefaultDatabaseInstance(project: string): Promise<string> {
9 const projectDetails = await getFirebaseProject(project);
10 return projectDetails.resources?.realtimeDatabaseInstance || "";
11}

Callers 6

requireDatabaseInstanceFunction · 0.90
startAllFunction · 0.90

Calls 1

getFirebaseProjectFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…