Is there anyway to import bulk data through the CloudKit Dashboard?

喜夏-厌秋 提交于 2019-12-30 11:02:24

问题


I see how to create record types and add records one at a time in the CloudKit dashboard. I want to try adding a few hundred records for testing. Is there any way to import CSV or JSON files into dashboard?


回答1:


No there is not. You have to create an import mechanism in your app. (Or you could use the CloudKit api from another app/website)




回答2:


On one hand you can only create records one at a time in the CloudKit dashboard.

On the other hand, you can import a CSV or JSON file as a CKAsset field in each record. Then your app can fetch that CKRecord and parse the CKAsset field.



来源:https://stackoverflow.com/questions/32574466/is-there-anyway-to-import-bulk-data-through-the-cloudkit-dashboard

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!