GithubHelp home page GithubHelp logo

isabella232 / coredatalite Goto Github PK

View Code? Open in Web Editor NEW

This project forked from flipkart-incubator/coredatalite

0.0 0.0 0.0 39 KB

Lightweight core data library for iOS

Ruby 7.99% Objective-C 92.01%

coredatalite's Introduction

CoreDataLite

Requirements

  • You need cocoapods installed on you mac.

Cocoapods

Install pods http://cocoapods.org/

Adding the pod to your project pod file

pod 'CoreDataLite', '~> 0.0'

Library Usage

This library provides a lighweight boilerplate code for CoreData in objective-c.

The code below shows how to get instance of CoreDatabaseInterface

  [[CoreDataManager sharedManager] setupCoreDataWithKey:self.dbName storeKey:@"dbName" objectModelIdentifier:@"databaseIdentifier"];
    
    CoreDatabaseInterface* coreDatabaseInterface = [[CoreDataManager sharedManager] getCoreDataInterfaceForKey:@"dbName"];

CoreDataManager is a singleton class which holds instances of CoreDatabaseInterface in a dictionary against a key, which has to be same as database name. This ensures that two database of similar name are not created.

CoreDatabaseInterface has methods to return back

  1. NSManagedObjectContext on private queue.
  2. NSPersistentStoreCoordinator
  3. NSManagedObjectModel

These methods can be used to carry out operations on CoreData.

Other than above, the CoreDatabaseInterface also provides

  1. Serial Queue
  2. Concurrent Queue, which can be used to run queries in serial or parallel.

Contributing

We'll love contributions, please report bugs in the issue tracker, create pull request (on branch develop) and suggest new great features (also in the issue tracker).

License & Credits

CoreDataLite available under the MIT license, so feel free to use it in commercial and non-commercial projects.

Author

Mudit Krishna Mathur [email protected]

Prabodh Prakash [email protected]

coredatalite's People

Contributors

prakashprabodh avatar anirudhramanan avatar muditkmathurflipkart avatar rajatgupta26 avatar thekirankumar 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.