Coder Social home page Coder Social logo

sqlite2coredata's Introduction

Sqlite2Coredata

Tool to migrate Standard Sqlite Database to Core Data

Sqlite2CoreData is a command line tool to migrate the Sqlite database to to Core Data compatible database. It generates the Datamodel file and Core Data Sqlite file which can be imported to Mac/iOS projects and used with Core Data. Main purpose of the tool is to ease the migration process. It generates Datamodel by creating entities based on the table schema. Foreign Key information is used to generate the relationship information.

For more details and sample usage visit the blog post

What it is?

  • Command line Tool
  • Xcdatamodeld Generator
  • Data Migrator to Core Data compatible Sqlite

What it is not?

  • Core Data Version Updater
  • Core Data Replacement
  • Wrapper for Core Data

Usage

Command Line

  1. Download the distribution.zip folder and extract
  2. From terminal browse to the extracted folder
  3. Run ./sqlite2coredata "path_to_database_file"

XCode

  1. Clone the repository
  2. Open Sqlite2CoreData.xcodeproj file
  3. Select Edit Schema and select Arguments tab
  4. Specify the path to the database

Output Files are saved to a folder named Output in the same directory containing the input database

Requirements

  • Mac OSX 10.7+
  • Xcode 4+
  • Xcode Command Line Tools

Next Steps

Next up for Sqlite2CoreData are the following:

  • Migrating many to many relationships
  • Migrating up the referential constraints
  • Optimizing setting up relationships

Credits

  • FMDB is being used for Sqlite Interactions.
  • Infections is used to generate Relationship names based on foreign key info

Creators

License

Sqlite2CoreData is available under the MIT license. See the LICENSE file for more info.

sqlite2coredata's People

Contributors

tapasya avatar adiimagine avatar adienthu 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.