Firebase实时数据库到Cloud Firestore [英] Firebase Realtime Database to Cloud Firestore

本文介绍了Firebase实时数据库到Cloud Firestore的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找将Firebase实时数据库数据迁移到Cloud Firestore的最佳方法,以查找具有许多嵌套行的json数据库.示例:

I´m searching the best way to migrate Firebase Realtime Database Data to Cloud Firestore for a json database with many nested rows. Example:

我发现没有什么可以帮助我的.对于我需要的迁移,是Cloud Firestore的新脱机功能.我正在使用Ionic3(Angular5)

I found nothing that could help me. For what I need the migration is the new offline functionality of the Cloud Firestore. I´m using Ionic3 (Angular5)

推荐答案

实际上,没有标准的方法可以从Firebase实时数据库迁移到Cloud Firestore,因为每个应用程序或项目都具有唯一性.您必须实现自己的迁移到Cloud Firestore的方式.但是我建议您阅读下一篇教程,这些教程将帮助您找到最佳的迁移方式:

Actually there's no standard way to migrate from Firebase Realtime Database to Cloud Firestore, because every application or project has is unique. You have to implement your own way of migrating to Cloud Firestore. But I suggest you read the next tutorials that will help you find the best way for you to migrate:

  1. Cloud Firestore数据模型.
  2. Firestore数据结构.

重要说明:通过Firebase Realtime Database支持官方持久性的方式:启用离线功能实时数据库.

Important note: By the way Firebase Realtime Database supports offilne persistence: Enabling Offline Capabilities Realtime Database.

这篇关于Firebase实时数据库到Cloud Firestore的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆