前往主控台

The Firebase Realtime Database service interface.

Do not call this constructor directly. Instead, use admin.database().

See Introduction to the Admin Database API for a full guide on how to use the Firebase Realtime Database service.

Index

Properties

app

app: App

Methods

getRules

  • getRules(): Promise<string>
  • Gets the currently applied security rules as a string. The return value consists of the rules source including comments.

    Returns Promise<string>

    A promise fulfilled with the rules as a raw string.

getRulesJSON

  • getRulesJSON(): Promise<object>
  • Gets the currently applied security rules as a parsed JSON object. Any comments in the original source are stripped away.

    Returns Promise<object>

    A promi