本文介绍了有什么方法可以将Realm数据库文件转换为sqlite?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个现有应用程序的领域数据库(.realm),该应用程序具有超过40万条记录.

I have realm database (.realm) from an existing application, which has more than 400k records.

我花了超过3-4个小时来研究这个问题,但找不到将.realm文件转换为 sqlite 文件的任何卓有成效的结果.

I dug my head in to this for more than 3-4 hours, but I couldn't find any fruitful results towards converting a .realm file in to a sqlite file.

推荐答案

到目前为止,任何数据转换都是手动完成的.人们已经通过从Core Data抓取对象并将它们保存到Realm的方式将其从Core Data转换为Realm.

Any data conversion so far has been done manually. People have converted from Core Data to Realm by grabbing the objects from Core Data and then saving them to a Realm.

我想您最好的选择会在这里相似.从领域中获取每个对象,然后将其转换为sqlite中的表/行/列.然后,您可以将该文件带到任何地方.

I imagine your best bet will be similar here. Grab each object from the Realm and then convert it to the tables/rows/and columns in sqlite. Then you can take that file anywhere.

这篇关于有什么方法可以将Realm数据库文件转换为sqlite?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 07:02