Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firestore: import sql database

Can't find any option to import my SQL Database into Firestore database. Realtime Database has this function, for example. Is it suggested to be available in Firestore after the Beta ?

like image 987
android51130 Avatar asked Apr 02 '26 22:04

android51130


1 Answers

I don't think there is a direct import right now.

You have a few options though:

  • Use the Firebase libraries to export data from your SQL application into Firestore manually (alternatively write a cloud function and get the data via an API). This can also be a good option, if you need to keep both DBs in sync for some transition time.
  • If you need to get your user accounts over to Firebase Auth, read this article
  • If you already have your data in a Firestore, gcloud now has an import in beta (https://firebase.google.com/docs/firestore/manage-data/export-import)

From your description I fear that the first option is the way to go for you. Unfortunately Firestore is still in beta and we have to create a lot of functionality ourselves (like SQL imports, data migrations, test mocks, …).

like image 136
morgler Avatar answered Apr 13 '26 19:04

morgler



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!