简体   繁体   English

在发布应用程序之前将数据上传到 Firestore 的最佳方式是什么?

[英]What's the best way to upload data into Firestore before publishing app?

I am building an app that uses Firestore as the database.我正在构建一个使用 Firestore 作为数据库的应用程序。 Entering data directly into Firestore is very time-consuming and I already have much of my starting data in a json file.将数据直接输入 Firestore 非常耗时,而且我已经在 json 文件中保存了很多起始数据。

How can I upload that json data into Firestore?如何将 json 数据上传到 Firestore? Is there something I can run in Xcode to push that json data into Firestore?我可以在 Xcode 中运行一些东西来将 json 数据推送到 Firestore 吗?

I appreciate any help or guidance!我感谢任何帮助或指导!

Firebase has an import/export feature, but that uses its own format. Firebase 具有导入/导出功能,但使用自己的格式。 There is nothing built into Firestore for importing data from other JSON files. Firestore 中没有内置任何东西可用于从其他 JSON 文件导入数据。

Luckily Firestore has an API, so folks have built add-in solutions.幸运的是 Firestore 有一个 API,所以人们已经构建了插件解决方案。 A quick search led me to this promising one: https://firebase.google.com/docs/firestore/solutions/schedule-export快速搜索让我找到了这个有希望的: https://firebase.google.com/docs/firestore/solutions/schedule-export

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在导航到ViewController之前为它加载数据的最佳方法是什么? - What's the best way to load data for a ViewController before navigating to it? 在iPhone上存储数据的最佳方法是什么? - What's the best way to store data on iPhone? 从PHP获取数据到iOS应用程序的最佳方法是什么? - What's the best way to get data from PHP to an iOS-app? 保护用户在本地保存的数据以及如何测试安全级别的最佳方法是什么? - What is the best way to secure user's data saved locally in app and how to test security level? 离线存储数据并在应用程序在线时更新数据的最佳方法是什么 - What's the best way to store data offline and update it when app goes online 使用RestKit为应用程序实现缓存行为的最佳方法是什么 - What's the best way to implement caching behavior for the app using RestKit 为智能手机应用程序实现应用程序服务器的最佳方法是什么? - What's the best way to implement an application server for smartphone app? 保持ios应用程序登录的最佳方法是什么? - What's the best way to keep ios app signed in? iOS应用程序检索其URL方案的最佳方式是什么? - What's the best way for an iOS app to retrieve its URL scheme? 为iOS应用程序创建常见问题页面的最佳方法是什么 - What's the best way to create a FAQ page for ios app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM