GithubHelp home page GithubHelp logo

jasper-chan / ecd-migration Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sdwornik/ecd-migration

0.0 1.0 0.0 12.43 MB

Objective-C 2.88% Swift 0.02% C 85.16% Ruby 0.01% Makefile 0.58% Awk 0.05% Shell 4.27% Groff 0.04% Tcl 2.99% HTML 0.16% Yacc 0.47% C++ 3.30% Batchfile 0.08%

ecd-migration's Introduction

This project was created for the purpose of serving as an experiment in using progressive migration with the module Encrypted-Core-Data (ECD). Currently, ECD does not respond to the signals being sent to progressively migrate and this project will serve as the place to experiment/tinker with in hopes of solving this problem.

HOW TO USE THIS PROJECT: This project has 4 interfaceable objects for the user the use.

The switch is used to allow the user to control whether or not they want database to be encrypted. It is advantageous to have this functionality as it makes it easier to look into the sqlite file with software such as SQLiteManager when the file is not encrypted. The rest of the buttons are self-explanatory.

This project expects the user to ALWAYS initialize core data using the original data model (ie. ECD_Migration.xcdatamodel), and to have the corresponding NSManagedObject classes built for the data model version being used.

Once this is true, the user may click on the 'Initialize CoreData' button to create the database. In order to test migration, the user must then choose which data model version they wish to use, replace the corresponding NSManagedObject classes.

Afterwards, the user must go to the IBAction initializeCoreDataAction and comment out [self initializeDefaultData] and [self verifyInitialData] before running the app. Notice this time, the button 'Initialize CoreData' will be disabled. The user will then press 'Start Migration' and can then watch the console for error logs.

A test case has been written for each model. Please visit the IBAction startMigrationAction and read the comments there to enable the proper test cases.

Please take the time to skim through the code if compilation arises as comments have been placed in appropriate places to remind the user what to do depending on test cases being run.

ecd-migration's People

Contributors

jasper-chan avatar sdwornik avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.