Module database

Source

Structs§

Database
DatabaseReference

Functions§

get_database
Takes a FirebaseApp instance and a [url] and returns a [FirebaseDatabase] instance. Fails only if underlying JS function fails.
get_ref
Takes a [FirebaseDatabase] instance and a [path] and returns a [FirebaseDbReference] instance. Fails only if underlying JS function fails.
get_ref_of_root
See get_ref documentation. Basically gains a reference to the root of your database, like (but not equivalent I don’t think) to calling get_ref with a path of "" or "/".
on_value_changed
Registers a [callback] to be executed every time some data at the specified DatabaseReference changes. Note: This closure will be called the first time the data becomes available.