Swift application that shows how to create and populate a Realm database from an existing SQLite database
This is meant to assist in migrating from a populated SQLite database to a populated Realm database.
-
Set up the SQLite database in your project
-
Configure a Realm object using an identical (or similar) schema
-
Map the returned values from the SQLite query to the realm object
-
Extract the populated .realm file for use in your other projects
This application goes through the process of converting a SQLite database to a .Realm file. Simply run the project once, and then locate and extract the .realm database and view the contents using Realm Browser.