| RealtimeDatabase {firebase} | R Documentation |
Realtime Database
Description
Access Firebase Realtime Database
Value
An object of class RealtimeDatabase.
Super class
Methods
Public methods
Inherited methods
Method new()
Usage
RealtimeDatabase$new( config_path = "firebase.rds", session = shiny::getDefaultReactiveDomain() )
Arguments
config_pathPath to the configuration file as created by
firebase_config.sessionA valid shiny session.
Details
Initialiases Firebase Storage
Initialises the Firebase Storage application client-side.
Method ref()
Usage
RealtimeDatabase$ref(path = NULL)
Arguments
pathPath to the database full URL to file.
Details
Reference
Creates a reference to a file or directory you want to operate on. Note that this reference persists, make sure you change it between operations.
Returns
Invisibly return the class instance.
Method on_value()
Usage
RealtimeDatabase$on_value(response, path = NULL)
Arguments
responseA boolean or character string.
TRUEindicates that you want to capture the results of the file upload (e.g.: success or failed) withget_responsemethod.FALSEindicates you do not want those results back. A character string is used as named of the response which then can be used in theget_responsemethod.pathPath to the database full URL to file.
Details
On Value
When path or ref sees an update it sends the new
data to response.
Method set()
Usage
RealtimeDatabase$set(data, response = NULL, path = NULL)
Arguments
dataDataset to upload.
responseA boolean or character string.
TRUEindicates that you want to capture the results of the file upload (e.g.: success or failed) withget_responsemethod.FALSEindicates you do not want those results back. A character string is used as named of the response which then can be used in theget_responsemethod.pathPath to the database full URL to file.
Details
Set Data
Pushes data to the database.
Method update()
Usage
RealtimeDatabase$update(data, response = NULL, path = NULL)
Arguments
dataDataset to update.
responseA boolean or character string.
TRUEindicates that you want to capture the results of the file upload (e.g.: success or failed) withget_responsemethod.FALSEindicates you do not want those results back. A character string is used as named of the response which then can be used in theget_responsemethod.pathPath to the database full URL to file.
Details
Update Data
Update a record.
Method delete()
Usage
RealtimeDatabase$delete(response = NULL, path = NULL)
Arguments
responseA boolean or character string.
TRUEindicates that you want to capture the results of the file upload (e.g.: success or failed) withget_responsemethod.FALSEindicates you do not want those results back. A character string is used as named of the response which then can be used in theget_responsemethod.pathPath to the database full URL to file.
Details
Delete
Delete data to the database.
Method clone()
The objects of this class are cloneable with this method.
Usage
RealtimeDatabase$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.