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_path
Path to the configuration file as created by firebase_config
.
session
A valid shiny session.
Initialiases Firebase Storage
Initialises the Firebase Storage application client-side.
ref()
RealtimeDatabase$ref(path = NULL)
path
Path 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)
response
A 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.
path
Path 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)
data
Dataset to upload.
response
A 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.
path
Path to the database full URL to file.
Set Data
Pushes data to the database.
update()
RealtimeDatabase$update(data, response = NULL, path = NULL)
data
Dataset to update.
response
A 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.
path
Path to the database full URL to file.
Update Data
Update a record.
delete()
RealtimeDatabase$delete(response = NULL, path = NULL)
response
A 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.
path
Path 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)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.