Last Updated: February 20, 2016
·
2.355K
· alexdenisov

iActiveRecord - ObjectiveC wrapper on sqlite3

https://github.com/AlexDenisov/iActiveRecord

ActiveRecord pattern for iOS. This framework use sqlite3 without CoreData and it makes working with sqlite much easier!

You don't need to create tables manually or write raw SQL.

Just describe your ActiveRecord and enjoy

#import <ActiveRecord/ActiveRecord.h>

@interface User : ActiveRecord

@property (nonatomic, retain) NSString *name;
@property (nonatomic, readwrite) NSInteger age;

@end
...

ARLazyFetcher *fetcher = [User lazyFetcher];
NSArray *users = [[fetcher limit:5] fetchRecords];