| RealtimeDatabase | R Documentation |
Access Firebase Realtime Database
An object of class RealtimeDatabase.
firebase::Firebase
new()RealtimeDatabase$new( config_path = "firebase.rds", session = shiny::getDefaultReactiveDomain() )
config_pathPath to the configuration file as created by firebase_config.
sessionA valid shiny session.
Initialiases Firebase Storage
Initialises the Firebase Storage application client-side.
ref()RealtimeDatabase$ref(path = NULL)
pathPath to the database full URL to file.
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.
Invisibly return the class instance.
on_value()RealtimeDatabase$on_value(response, path = NULL)
responseA boolean or character string.
TRUE indicates that you want to capture the
results of the file upload (e.g.: success or failed)
with get_response method. FALSE indicates you do
not want those results back. A character string is
used as named of the response which then can be used
in the get_response method.
pathPath to the database full URL to file.
On Value
When path or ref sees an update it sends the new
data to response.
set()RealtimeDatabase$set(data, response = NULL, path = NULL)
dataDataset to upload.
responseA boolean or character string.
TRUE indicates that you want to capture the
results of the file upload (e.g.: success or failed)
with get_response method. FALSE indicates you do
not want those results back. A character string is
used as named of the response which then can be used
in the get_response method.
pathPath to the database full URL to file.
Set Data
Pushes data to the database.
update()RealtimeDatabase$update(data, response = NULL, path = NULL)
dataDataset to update.
responseA boolean or character string.
TRUE indicates that you want to capture the
results of the file upload (e.g.: success or failed)
with get_response method. FALSE indicates you do
not want those results back. A character string is
used as named of the response which then can be used
in the get_response method.
pathPath to the database full URL to file.
Update Data
Update a record.
delete()RealtimeDatabase$delete(response = NULL, path = NULL)
responseA boolean or character string.
TRUE indicates that you want to capture the
results of the file upload (e.g.: success or failed)
with get_response method. FALSE indicates you do
not want those results back. A character string is
used as named of the response which then can be used
in the get_response method.
pathPath to the database full URL to file.
Delete
Delete data to the database.
clone()The objects of this class are cloneable with this method.
RealtimeDatabase$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.