Arel like NSPredicate constructor
Objective-C
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Arelish.h
Arelish.m
README.textile
UBCoreDataHelper.h
UBCoreDataHelper.m
UBCoreDataMigrationHelper.h
UBCoreDataMigrationHelper.m

README.textile

Arelish

Arel Ruby library like NSPredicate constructor.

Usage


Arelish* helper = [Arelish arelishWithEntity:NSStringFromClass([YourCoreDataModel class]) context:managedObjectContext];
helper = [[helper where:@"parent" is:self] where:@"status" IN:[NSNumber numberWithInt:0],[NSNumber numberWithInt:1],nil];

NSFetchRequest* request = [helper request];

Copying notice

Written by Soutaro Matsumoto.

Distributed under MIT License.