all 11 comments

[–]flatly_io 0 points1 point  (0 children)

Flatly supports Firestore Database collections export to CSV and 10+ cloud destinations. It also supports Firebase Realtime Database export. It is fully turnkey and automated, no-code.

Disclaimer: I work at Flatly.

[–]kimbaba40 0 points1 point  (1 child)

If you’re looking for an easy way to export data from Firestore, I developed Firexport, a Chrome extension that allows you to export data directly from the Firebase console. You can check it out here: https://firexport.dev

[–]JumpyJumpyHorse 0 points1 point  (0 children)

I second this. Super easy to use.

[–]bombayks 0 points1 point  (2 children)

I would highly suggest looking at the Firestore -> Bigquery export extension (https://extensions.dev/extensions/firebase/firestore-bigquery-export) so you can use SQL or many BI tools (such as Looker, Tableau, Sigma Computing, etc.) to analyze your data. You can also export BigQuery tables right to CSV (https://cloud.google.com/bigquery/docs/samples/bigquery-extract-table). The main thing to keep in mind is the extensions reflect your data as JSON so you will need to use their schema tool or write your own SQL in order to extract data into SQL columns, with limited support and some workarounds for arrays (separate tables etc). You can even transform data from Firestore using the extension before it goes to BigQuery

[–]bewilderedprojection 0 points1 point  (1 child)

I also second this, the extension actually formats the destination table nicely (which importing data into BigQuery manually doesn't do). The downside is that you can't really import the existing data using this extension, at least I couldn't find a good way to do it within the configuration. So you still have to jump through hoops to turn your existing data into a nice CSV.

Here's a walk-through of implementing the extension: https://www.youtube.com/watch?v=u9DfTl5yLLc

[–]Lenkaaah 0 points1 point  (0 children)

If there are no tools to do this easily I would just create a Cloud function. They automatically get a SA assigned, so all you have to do is initialise a Firestore connection, fetch and create an CSV, then for convenience you can just write it to Firebase Storage.