GithubHelp home page GithubHelp logo

jvlstudio / iqdatabasemanager Goto Github PK

View Code? Open in Web Editor NEW

This project forked from favormm/iqdatabasemanager

0.0 2.0 0.0 332 KB

CoreData helper classes with convenience methods

License: MIT License

iqdatabasemanager's Introduction

IQDatabaseManager

IQDatabaseManager contains CoreData helper classes with convenience methods to communicate with CoreData for performing common tasks(inserting+updating+deleting+sorting+searching) on database records. Note that IQDatabaseManager is abstract class. You should not create it's object directly

IQDatabaseManager Features:-

  1. Convenience methods to Insert, Update, Delete records.

  2. Convenience methods to do Searching and Sorting.

MyDatabaseManager

I created another subclass called MyDatabaseManager for demo purpose.

Usage:-

Step1:- Just create your Data Model & create your Entities in your Data Model.

Step2:- Drag and drop IQDatabaseMangerSubclass.h & IQDatabaseManger.h & .m file in your project.

Step3:- Subclass IQDatabaseManager with your custom class name. Import IQDatabaseManagerSubclass.h in your .m file of your custom class(Don't import it in your .h file), this is the way of implementing protected methods in Objective-C.

Step4:- Override +(NSURL*)modelURL abstract method declared in IQDatabaseManagerSubclass.h in your subclass and return your DataModel URL.

Step5:- Just write your own wrapper in your subclass with your DataModel entities with the help of IQDatabaseManagerSubclass.h header file.

Step6:- To call your methods, use it's default singleton instance via sharedManager. For example use [CustomDatabaseManager sharedManager] getAllData] to call getAllData method.

You can also create multiple subclasses of IQDatabaseManager in one project. The sharedManager method will return singleton instance per subclass. For example if you have 4 subclasses the there will be 4 singleton instances, one for each subclass.

LICENSE

Distributed under the MIT License.

Contributions

Any contribution is more than welcome! You can contribute through pull requests and issues on GitHub.

Author

If you wish to contact me, email at: [email protected]

iqdatabasemanager's People

Contributors

hackiftekhar avatar

Watchers

 avatar  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.