The constructor takes an optional parameter of type FirebaseConfig. If the parameter is not present the FirebaseConfig is imported from firebase-config.ts.
Optional
firebaseConfigParam: anyFetches data from the specified path in the Firebase Realtime Database.
The path in the database from which to fetch data.
A promise that resolves with the data of type T if available, or null if no data exists at the specified path or if an error occurs.
Listens for changes at the specified path in the Firebase Realtime Database.
The path in the database to listen for changes.
The callback function to be called with the results when a change occurs.
Sets data at the specified path in the Firebase Realtime Database.
The data to be set at the specified path.
The path in the database where the data should be set.
A promise that resolves when the data has been successfully set.
This class manages all access to the firebase Database. The class has no knowledge of the structure of the database.