Home > Software design >  how to transfer db to firebase
how to transfer db to firebase

Time:10-22

how can I transfer an existing local db to firebase?

I have I local db that I would love to transfer and use by firebase but I don't want to retype all my hard work is there an easy way to do this?

CodePudding user response:

You can do it without any tool

Firstly, you have to create a logic that fetches your data from your DB in your flutter app

Secondly, you can create a function that is able to put all your fetched data from DB into your firestore collection.

That's it. It is called automation.

CodePudding user response:

Firebase has documentation on how to import data when moving over to Firebase: https://cloud.google.com/firestore/docs/manage-data/export-import#import_data

You'll need to provide more details into what kind of data you're coming from (relational, nosql, etc.) and which db type you want to use on Firebase (realtime or firestore) if you want a more detailed answer.

  • Related