Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any way to convert Realm database file in to sqlite?

Tags:

sqlite

realm

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

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.

like image 973
virus Avatar asked Mar 28 '15 12:03

virus


1 Answers

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.

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.

like image 178
yoshyosh Avatar answered Sep 29 '22 15:09

yoshyosh