Connecting to Realtime Database
Creating a new connection
- Open the connections dialogue. See managing connections for more information.
- Click the
New Connectionbutton at the bottom-left of the dialogue.
- From the
- Give your connection a
Nameso you can easily identify it.
- Enter the Google Cloud
Project IDfor the project containing your Realtime Database instance.
- Enter the
Database URLof your Realtime Database instance.
- Select your authentication strategy. You can either delegate access to a service accunt provided by Ezfire or provide a service account key for your own service account. See authenticating a Google Cloud Service for more information. In particular, the service account needs one of the following roles:
roles/firebasedatabase.viewerfor a read-only connection.
roles/firebasedatabase.adminfor a read/write connection.
- Click the
Savebutton to save your connection.
Your Realtime Database connection is now ready to use.
db global supports a subset the
Database API from the
firebase-admin NPM package. In particular, it exports the
refFromUrl method. See the official documentation for more information.