Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Firebase Database offer features like Events, Triggers and Stored Procedures?

I have a question in regards to the capabilities of Firebase in equivalence to MySQL features like:

  • Events
  • Triggers
  • Stored Procedures

In my case I want to migrate off of MySQL to Firebase but I need to know if the usecase can be replicated in Firebase.

My current MySQL DB I have a table that has a column called status which once it gets changed to 'Final' it triggers the execution of a stored procedure to do a calculation on an entire table.

So in other words I would have to be able to add a 'trigger' on the actual firebase data to then perform a 'stored procedure' to calculate something; is this possible with Firebase?!

like image 754
Famic Tech Avatar asked Jul 28 '16 01:07

Famic Tech


People also ask

What are triggers in Firebase?

The Functions which we write can respond to events that are generated by Firebase and Google Cloud features called triggers.

What type of database Firebase has?

The Firebase Realtime Database is a cloud-hosted NoSQL database that lets you store and sync data between your users in realtime.

How is Firebase different from other databases?

Firebase uses NoSQL; MySQL uses SQL. Firebase is horizontally scalable; MySQL is vertically scalable. Firebase uses key-value, wide-column, graph, or document stores; MySQL is table-based. Firebase has dynamic schemas to facilitate unstructured data; MySQL has predefined schemas.

What is the difference between Firebase database and Realtime Database?

Cloud Firestore is Firebase's newest database for mobile app development. It builds on the successes of the Realtime Database with a new, more intuitive data model. Cloud Firestore also features richer, faster queries and scales further than the Realtime Database. Realtime Database is Firebase's original database.


1 Answers

You now have the capability to use Cloud Functions for Firebase to write code that triggers in response to changes in your Firebase project. There is lots of sample code that illustrates how to respond to writes to a particular location in your database, among many other types of events.

like image 178
Doug Stevenson Avatar answered Sep 27 '22 18:09

Doug Stevenson